Jump to content
  • 0
Unnman

Removing/Disabling Vehicle key system from trader

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.

Share this post


Link to post
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;

 

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...