Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
nullsystems

Lock/Unlock is server side?

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Under that conclusion, every command could be considered as a "hack".

THere is obviously a way to do it, but no idea how.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×