View Full Version : Lock/Unlock is server side?
nullsystems
Jun 29 2009, 17: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, 18:40
Try setVehicleLock, maybe it's different (assuming you were using lock before).
nullsystems
Jun 29 2009, 19:01
That doesnt work either im afraid
Inkompetent
Jun 29 2009, 19: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.
nullsystems
Jun 29 2009, 19: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.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.