View Full Version : Lock/Unlock is server side?
Jun 29 2009, 18:31
Im trying to create an addon which can lock an unlock a vehicle from clientside...
However this works on a test mission in single player...but not multiplayer.
Why arent vehicles unlocked/locked from clientside scripts?
How can I solve this?
I tried setting the vehicle to publicVariable "veh"; also.
Big Dawg KS
Jun 29 2009, 19:40
Try setVehicleLock, maybe it's different (assuming you were using lock before).
Jun 29 2009, 20:01
That doesnt work either im afraid
Jun 29 2009, 20:11
Probably not allowed because it could be used as cheating, so that people could run scripts on servers to access vehicles they shouldn't be able to get into.
Looking at the 'lock'-command all effects are only local, so you will have to - one way or another - make the server aware of the unlock attempt, and unlock the vehicle server-side.
Jun 29 2009, 20:32
Under that conclusion, every command could be considered as a "hack".
THere is obviously a way to do it, but no idea how.
Powered by vBulletin® Version 4.2.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.