that would require a database read/write and there is no field for it. What you could do is install the inidbi which is serverside only and then you could read/write the vehicles lock status when it is near a player.
I would use R3F logistics since it already has all the lock/unlock code in it and you edit inside those actions.
So it would go like this:
Install inidbi onto your server.
Add the init code to your init.sqf
Edit the R3F lock/unlock actions to check the iniDB and get the vehicle status
If its locked, lock the vehicle. If the player locked it then show unlock option.
if its unlocked, show the lock option.
In the R3F lock/unlock actions, save the new vehicle state in the iniDB.
Yeah, thinking about this, its not too difficult and I have full confidence in your abilities. Let us know how its coming along and if you need any help.
I'd prefer without locking, but since that doesn't work either, I thought someone else would know how to implent it into dayz. I've seen some Dayz Mod Servers where it is possible to lock vehicles and change their colors.
so you originally asked FOR locking, now you would prefer without locking? .. and it DOES work. What doesn't work 'out of the box' is saving/loading the locked status but I told you how to do that EASILY.
But you can add that paint script into dayz .. i see nothing special about it that would require epoch.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.