Ppgtjmad / SimpleShops

[HG] Simple Shops
27 stars 8 forks source link

Vehicle still on garage #58

Closed Skyrbose closed 4 years ago

Skyrbose commented 4 years ago

When a vehicle is destroy or deleted and them the server restart the vehicle is back on the garage. How can i change that? Not a clue in config files

Ppgtjmad commented 4 years ago

There's nothing you can do right now, but I'm on it.

Ppgtjmad commented 4 years ago

Here it is -> 8f22767d9f0bbde21bf0bfbdf3e7b0238458d0ed

Skyrbose commented 4 years ago

Oh, thanks a lot!

I have another posible enhancement, cleanup the inventory of the vehicle when u buy it, sometines it came with stuff of the vehicle and is a little bit annoying to take off the users

Ppgtjmad commented 4 years ago

In HG_Config.h you have to set clearInventory to true

Skyrbose commented 4 years ago

But that clear all the inventory in every restart

Ppgtjmad commented 4 years ago

That clear vehicles inventory when they're spawned, this parameter is used in HG\Functions\Server\fn_spawnVehicle.sqf

Skyrbose commented 4 years ago

Ill try it, but im testing the cleanup of the vehicles when it gets destroy and dont works, even with the download of your script in vanilla with no modifications

Ppgtjmad commented 4 years ago

Should be fixed now -> 8461aa2279f9a04ef6ce862cbe378c4a007f2f44

Skyrbose commented 4 years ago

Done, thanks!