Open
daniel-w0
opened this issue 4 years ago
•
0 comments
Callbacks
OnPlayerLoaded : Can be done by checking the client gamestate or check if they have spawned a vehicle after they've joined via OnPlayerConnected
OnVehicleEdit : Can be done by saving the previous vehicle data and comparing it with the new modified values
OnInitialize : When the server has started this will be called. It would be nice if we could disable the logging functions as well. For example when you type something in chat it gets sent to the console output.
Functions
client:displayDialogue(message, time_sec) : displays a message in the top left corner
client:sendLua(string.format("ui_message('%s', %s)", message, time_sec))
edit_json(table, key, value)
client:sendChatMessage()
should also take in an optional colour table
client:sendLua()
should return if the command was successfully executed
should not run if the client's gamestate has not finished loading
Some of these functions are optional but would improve the API, they're simple commands