Making the console output selectable with tail

Tutoriale, ghiduri de optimizare si suport pentru crearea serverelor.
Post Reply
User avatar
greenie
Full Member
Full Member
Posts: 2621
Joined: Sun Nov 21, 2021 4:55 pm
Jucator SA:MP ?: Nu
Nick:: greenie
Jucator CS ?: Da

Making the console output selectable with tail

Post by greenie »

[Description]
This is a guide for developers and anyone who wants to be able to access client’s console output in real time and select/copy from it without the annoyance of opening and closing logs from time to time.

[How-To]
Step 1 - Have/Install git for windows
If you don’t already have this powerful tool, you can download it from here
Step 2 - Create this little sh script
Create a new file named CiticenFXLogger.sh at your FiveM Application Data directory
Open it with you prefered text editor and fill it with this.
tail -f CitizenFX.log -n 10000
From now on, by executing that script, a git console will open with the output of FiveM console
Step 3 - (optional) Accommodating the console size
Once you have it opened, right click on the title bar > Options… > Window | Edit it to your preference and save.
I personally use 261x55 (embrace the power of odd numbers)
𝑴𝒂𝒚𝒃𝒆 𝒕𝒉𝒆 𝑬𝒂𝒓𝒕𝒉 𝒊𝒔 𝒕𝒉𝒆 𝑯𝒆𝒍𝒍 𝒐𝒇 𝑨𝒏𝒐𝒕𝒉𝒆𝒓 𝑷𝒍𝒂𝒏𝒆𝒕... ☢️

✅ GAZDUIRE JOCURI / VPS / GAZDUIRE WEB / SERVERE DEDICATE - Stock NELIMITAT / Valabil comandati pe https://www.zonek.ro/
Post Reply

Return to “Server Development”