What the difference between client script and a server-side script?

Im new to programming and to developing resources. Thats why my questions are that stupid. I just want to understand what is the difference between a client script and a server script?

  1. What is a client? A Fivem client on somebodies pc or what?
  2. Can you give me example for a client side script does and a server-side script does.

Clientside is the code snippet that the client, i.e. the player, gets and that is executed on their pc.

Server side is the code snippet that is executed ONLY on the server, this is NEVER sent to the client.

There is no concrete example so you can only see from the code which page it is. In the fxmanifest it is always readable (but it can also be on both sides).

There are however a few authorization differences between the client has for security reasons the entire os libary not etc. otherwise anyone could, for example, malicious code on the player his PC.
Also, for example, database SQL queries are only made via the serverside.
Some natives are only available for client, server or both.

I hope I could help you a little bit, if so please mark this message as solution.

Many greetings

1 Like

Thank you man

1 Like