CTCCoco Posted July 25, 2010 Share Posted July 25, 2010 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. Link to comment
Seif Posted July 25, 2010 Share Posted July 25, 2010 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) Link to comment
50p Posted July 25, 2010 Share Posted July 25, 2010 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. Link to comment
Seif Posted July 25, 2010 Share Posted July 25, 2010 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. Link to comment
50p Posted July 25, 2010 Share Posted July 25, 2010 AFAIK, there is no "window compiler". You need to use the console or MTA:SE which compiles your script to find errors (the compiled script is located in your "C:\Documents and Settings\\Local Settings\Temp" folder under temp.luac name). Link to comment
Seif Posted July 25, 2010 Share Posted July 25, 2010 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? Link to comment
Remp Posted July 25, 2010 Share Posted July 25, 2010 keep in mind compiled scripts can be decompiled just as easily, there is no way to completely safeguard any client side files Link to comment
50p Posted July 25, 2010 Share Posted July 25, 2010 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. Link to comment
dzek (varez) Posted July 26, 2010 Share Posted July 26, 2010 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 Link to comment
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