Oh god ! Thanks !
Is there a way to know if something should be client or server sided ?
I guess in this case this is server sided since i add a command, right ?
@gothman I’m still learning Lua myself. I’ve learned so much since joining the forum. Commands are server side and the event they trigger can be either client side or server side, all depends. Like /heal would be server side, the triggered event would be client side. /Help is a server side command and the chat message is triggered by the server. Anytime you see citizen, that’s client side. Take a look at es_admin Sv and cl for examples. I’ve learned a lot by reading codes, trial and error, and the awesome ppl on the forum.
I know I’m reviving a old topic but here’s my interpretation of server side vs client side. Server side is not able to use Natives. The server “doesn’t know” anything about GTA V itself. All it does is relay information to who and where it’s needed. For example, it can tell when someone has chatted but it cannot get a player’s coordinates. Server is mainly (but not always) used to trigger something in which client scripts respond.