arnoldasz Posted April 8, 2010 Posted April 8, 2010 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.
Jason_Gregory Posted April 8, 2010 Posted April 8, 2010 Hi arndolasz, i think this will help ya finding out the differense between server-side and client-side Functions/Events/Scripts https://wiki.multitheftauto.com/wiki/Scr ... de_scripts
arnoldasz Posted April 8, 2010 Author Posted April 8, 2010 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?
Dark Dragon Posted April 9, 2010 Posted April 9, 2010 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now