Jump to content

Noob question. Help needed please!


CTCCoco

Recommended Posts

Posted

I don't see the difference between a client script and server script.

If some functions are in both server and client script, how i can now where i must use?

Please help, I don't understand very well the difference explained in the MTA:SA wiki.

Thanks for all.

Pawn, PHP programmer. Training and learning LUA at the moment.

Prison_Break_Signature_by_aprik9se.jpg

Posted

If you don't know which to pick, I suggest you to pick the server side(less to download from users) unless it has something related with a client side function only(then again you can use triggerClientEvent to use a client side function on server-side)

Posted
I don't see the difference between a client script and server script.

If some functions are in both server and client script, how i can now where i must use?

Please help, I don't understand very well the difference explained in the MTA:SA wiki.

Thanks for all.

As stated long time ago, use client-side scripts only for visuals (GUI) and custom models/textures (engine functions) if possible.

Posted
I don't see the difference between a client script and server script.

If some functions are in both server and client script, how i can now where i must use?

Please help, I don't understand very well the difference explained in the MTA:SA wiki.

Thanks for all.

As stated long time ago, use client-side scripts only for visuals (GUI) and custom models/textures (engine functions) if possible.

And is there a way to protect those client side scripts? I couldn't find a LUA window compiler.

Posted

Ah cool. Is there any possibility to force the script to compile to your resource folder under the script name as an option in the MTA SE?

Posted

keep in mind compiled scripts can be decompiled just as easily, there is no way to completely safeguard any client side files

Posted
Ah cool. Is there any possibility to force the script to compile to your resource folder under the script name as an option in the MTA SE?

No, also, it can compile only 1 script at a time (the active one). In the future I want to "compile" all client-side and/or server-side scripts (there should be an option) and zip them so you can upload a .zip straight to your server.

Posted

you can also download this:

http://upload.dzek.metal.info/pliki/Lua.rar

unrar it to C:\Lua (path is important!)

then drag-and-drop uncompiled lua file to compile.bat file, and it will be compiled and stored in C:\Lua as luac.out

maybe in future i'll prepare better tool for mass-compliing scripts

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

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