MOH Posted September 28, 2009 Share Posted September 28, 2009 Hi. I was deciding which was better, client or server scripts. Feel free to post what you think here. For me, I like server scripts he most. They feel easy to script, and I think they are fun to make Link to comment
Dark Dragon Posted September 28, 2009 Share Posted September 28, 2009 client VS server will always be a failure. it must be client AND server to work well. there is no such thing like a better scripting type. both have advantages and disadvantages. even if some cool scripts only require server side or only client side scripting it will all be up to the use. however, as long as something is possible to do client side you should do so, because the server has to handle a lot of players at the same time, while the client only cares about itself. Link to comment
Gamesnert Posted September 28, 2009 Share Posted September 28, 2009 Overall I prefer client-side scripting. The things you can do client-side are just that much more fun to do, you can do stuff with vehicle gravity, cheats, DX, GUI, model replacement etc. Although for good scripts you usually need at least 1 server-side script, like Dragon already said. Most things can be accomplished client-side, and can even be synched without the need of server-side scripts. (for instance getElementPosition on yourself or on your own vehicle is synched, as is for instance setElementData) Link to comment
Slothman Posted September 28, 2009 Share Posted September 28, 2009 doing things serverside whenever possible makes things moe secure and reduced downloads when people connect. i would reccomend doing things serverside whernever possible. there are many things that can only be done clientside however. and there are some instances when you need a faster reaction time than a server script can provide (for example a marker getting hit) Link to comment
Woovie Posted October 2, 2009 Share Posted October 2, 2009 Server > Client as far as most of my scripts. Any time something is client is because it has to be. Link to comment
MOH Posted October 2, 2009 Author Share Posted October 2, 2009 I know that you need both. What I was asking is which you prefer scripting. I like client because it has many more fuctions, or just the better ones. Link to comment
Phat Looser Posted October 3, 2009 Share Posted October 3, 2009 There is no VS. There is cooperation. As soon as you compare client side and server side scripts, both become sort of useless. Client side scripts and server side scripts are different, not only because of the download. Using a client side or a server side script is a matter of strategy. Lag, speed, security. Link to comment
eAi Posted October 3, 2009 Share Posted October 3, 2009 You should use server-side scripts where you possibly can. Client-side scripts are out of your control, and can potentially be hacked. Anything you do client-side that can be seen by other players you should carefully check server-side, or cheaters can easily take advantage of it. MTA's scripts were originally server-side only for exactly this reason. 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