Jump to content
  • 0

Removing/Disabling Vehicle key system from trader


Unnman

Question

Hello folks, I just wanted to ask how to remove key from traders when you buy vehicle, i been working on mine pve server with friends and buying takes up inventory (and we dont really need key cuz its pve type server).
Thank you.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
3 hours ago, Unnman said:

Hello folks, I just wanted to ask how to remove key from traders when you buy vehicle, i been working on mine pve server with friends and buying takes up inventory (and we dont really need key cuz its pve type server).
Thank you.

I think you asked about this on discord?

The problem is it's tied in quite a few places, you could disable it properly with a lot of overwrites, but you could simply bypass the checks in fn_selfActions.

If you're running a custom fn_selfActions.sqf (https://github.com/EpochModTeam/DayZ-Epoch/blob/master/SQF/dayz_code/compile/fn_selfActions.sqf):

Here's a simple way to remove the need for a key when locking/unlocking a vehicle, you could tell players to throw away their key since anyone would be able to lock/unlock a vehicle, find this line: 

_hasKey = _characterID in _temp_keys;

Change it to:

_hasKey = true;

 

 

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...