Server console clear

Hey,

I just was wondering if there is a function and or a command to actually clear the servers bat console?

I also took a look into the documentation and natives and couldn’t find something usefull.

I’ve tried of course obvious commands like: cls & clear

Any Ideas?

Edit: Sorry, accidently moved to wrong topic… :smiley:

That would probably have to be done though Command Prompt itself and not FiveM.

alright for everyone looking around, I already found now one solution:

io.write("\027[H\027[2J")

it will actually not clear but scroll up so it seems like the console has been cleared.

2 Likes