Jump to content
  • 0

Removing the ability to sell locked vehicles


MGT

Question

Would it be possible to remove the ability to sell locked vehicles at vehicle traders by pulling a custom trade_any_vehicle.sqf from dayz_code using a similar argument to below but for lock?

Also, could find no reference to trade_any_vehicle.sqf in compiles.sqf so I wouldn't know where to call it from.

if(_tireDmg > 0 and _tires > 0) then {
						if((_tireDmg / _tires) > 0.75) then {
							_okToSell = false;
						};
					};
Link to comment
Share on other sites

13 answers to this question

Recommended Posts

  • 0

lol, very inventive. I could see that being annoying.

I thought you could reverse the tow truck under other vehicles, not tried it for a while.

Not sure if it's something that will get included in next update as it's only supposed to be for bug fixes currently.

Link to comment
Share on other sites

  • 0

Hello MGT, yes it's in the compiles.sqf, please search for the line:

_File = "\z\addons\dayz_code\actions\" + _afile + ".sqf";

_afile refers to the "afile" column in your database for the items/vehicles traders.

 

how would this work tho if you just wanted to do vehicles but no boats,etc

Link to comment
Share on other sites

  • 0

Nice, but maybe a solution that makes more sense is u can't sell a locked vechicle if u don't have the key for it on your player.

This does make it so you cannot sell a locked vehicle and with this we no longer have to restrict trades when others are within 12m.

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...