Jump to content

Client scripts and server scripts


Recommended Posts

Posted

Hello, I am new on MTA, and I don't understand the differense between server-side and client-side scripts. What is the differense between them? For example, what can I do in 'onPlayerSpawn' event and what can't I do in it, and what can I do in 'onClientPlayerSpawn' event, and what I can't.

Posted

Well, I understand this, but I don't understand what's the point of two same events which called when player joins to server, if they do the same thing? Is it because server side scripts can't be in same .lua file with client side script?

Posted

convenience. onClientPlayerJoin is basically just there so you don't need to trigger an event yourself when you need to get that client side. it's just there so you can use it in client side scripts as well.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...