Jump to content
  • 0

Disable vendor keyed vehicle sales?


McKeighan

Question

So, I can see the variable in "server_publishVehicle2.sqf" that is called "_donotusekey"   - but I can't see for the life of me where to go to affect that variable.

 

Basically, I want to shut off the using of vehicle keys. Still able to buy and sell vehicles on the server, just you can't get a keyed vehicle anymore (is the idea).   Short of re-writing that SQF, is there a variable or an easier way to do that??  

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
13 hours ago, McKeighan said:

So, I can see the variable in "server_publishVehicle2.sqf" that is called "_donotusekey"   - but I can't see for the life of me where to go to affect that variable.

 

Basically, I want to shut off the using of vehicle keys. Still able to buy and sell vehicles on the server, just you can't get a keyed vehicle anymore (is the idea).   Short of re-writing that SQF, is there a variable or an easier way to do that??  

If you have a custom variables.sqf you can add this line to it: 

DZE_tradeVehicleKeyless = DZE_tradeVehicle;

We define keyed vehicles based off their character ID, a characterID 0 vehicle is not keyed, This array will make it so any vehicles you buy from a trader will be not keyed.

If you don't have a custom variables.sqf, just put that code down at the bottom of your init.sqf.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...