cleolibrary / CLEO5

CLEO 5 for GTA San Andreas
https://cleo.li
MIT License
48 stars 5 forks source link

[suggestion] cmd #151

Closed D3Pheonix closed 1 week ago

D3Pheonix commented 3 months ago

Hi, can u add in-game debug console, like in SAMPFUNCS ?

MiranDMC commented 3 months ago

What does it mean? There are already features for printing debug messages from scripts. https://library.sannybuilder.com/#/sa/classes/Debugger See for example trace https://library.sannybuilder.com/#/sa/debug/2101

image

D3Pheonix commented 3 months ago

SF Console

load/unload script(s), calling opcodes directly from the console.

image

And maybe add an opcode that will register commands in console. For example, I type something like "carhp" or "carhp [value]", and my label executed:

image

x87 commented 3 months ago

CLEO Redux (JS) can execute any command (opcode) from a text file in real time.

It's not in-game console, but close enough if you run the game and text editor windows side by side

MiranDMC commented 3 months ago

It would not be difficult to write something like that as cs script. This looks like ImGUI, which is available for regular CLEO too. Generally sounds like stand alone project that does not have to be build into CLEO.