Jump to content

[HELP]Script types? Server or Client?


irinel1996

Recommended Posts

Well, if you take a look in here: https://wiki.multitheftauto.com/wiki/Main_Page you'll see this:

Client Functions 
Client Events 
Server Functions 
Server Events 

Some functions/events are only client side same for the server side functions/events.

Example: kickPlayer is only server side, so in the script type must be "server"

Another example: guiCreateWindow is only client side, all GUI/DX drawing functions are only client side, type must be "client".

Sorry if you didn't get me, I'm not good when it comes to explain things.

Link to comment
Well, if you take a look in here: https://wiki.multitheftauto.com/wiki/Main_Page you'll see this:

Client Functions 
Client Events 
Server Functions 
Server Events 

Some functions/events are only client side same for the server side functions/events.

Example: kickPlayer is only server side, so in the script type must be "server"

Another example: guiCreateWindow is only client side, all GUI/DX drawing functions are only client side, type must be "client".

Sorry if you didn't get me, I'm not good when it comes to explain things.

I understood very well, thanks.

You're a machine. Hehe...

__________________

Greetings from Spain.

Link to comment

:lol: yes me too i confused of that thing

but if you take a look of scripts you will know if this for server or for client

function some time useing function for server and client

if the client have a function then the server must have a function

meta.xml

server.lua

client.lua

if the client have function you must put function in server too

that is no defrrent btween server or client the all same thing

i hope you understand me im not english :lol:

Link to comment

Understand like that:

Server functions/events = what runs in the server, the host...

Client functions/events = what runs in your game, your gta...

There are some functions that only work for server, and some only work for client. Exemple; the function kickPlayer only works via server-side, now why? Security! dxDraw functions only work in client, now why? Performance.

And in not english too, im brazilian, and i lern by my own, and so you will do.

Link to comment

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...