DayZ
Trader
HuntTheWin Oct 19, 2020 @ 8:20pm
Vehicle mods to spawn fully built with key
Would anybody know how to set up a vehicle mod to be sold by the trader and still have a key come with it? I know "V" and "VNK", but the problem is the vehicles are spawning without any parts and I can't open the door with a key because there is no door to unlock allowing me access to the vehicles parts/inventory.
< >
Showing 1-7 of 7 comments
kuli_vt Oct 21, 2020 @ 5:53am 
Vehicle kits are configured in TraderVehicleParts.txt
HuntTheWin Oct 21, 2020 @ 6:31pm 
Awesome... thank you!
Joshjones Oct 22, 2020 @ 3:22am 
wheres the unlock point on the merlin heli? we can't find it
GustavMolotoV Oct 22, 2020 @ 11:57am 
i looked in that folder TraderVehiclwParts but i do not see anything about keys for the cars. can someone please explain to me how that works haha
Curiosity Oct 28, 2020 @ 5:27am 
@Goose613 you have to put the vehicle classname in the TraderVehicleparts.txt + the carparts.

The keyspawning for the Vehicle is defined inside your TraderConfig.txt

as an example:

to implement a UAZ from the Expansion to your Traders you would need to do the following:

  • Navigate to "ServerProfileFolder/Trader"
  • You should see all your trader configs in there. open up the TraderConfig.txt
  • Search for your desired trader to sell the vehicle
  • Warning !!! only traders with set vehicle spawnpoint can sell vehicles !!!
  • Implement the Vehicle like this:
<Trader> Vehicles Trader //Example Trader <Category> Vehicles //Example Category ExpansionUAZ, V, 70000, 35000 //Example Vehicle with prices set
ExpansionUAZ = Classname of the Vehicle to sell in the example V = Definition of the Item you've set (V defines a Vehicle with key) VNK = Definition of the Item you've set (VNK defines a Vehicle without a key) W = Definition of the Item you've set (W defines a Weapon) M = Definition of the Item you've set (M defines a Magazine) * = Definition of the Item you've set (* defines the max value of the Item) any number = Definition of the Item you've set (numbers define the quantity of the item) 70000 = Buy-price of the Vehicle in the example 35000 = Sell-price of the Vehicle in the example

Now that you have implemented the Vehicle in your Trader you can simply save the file and reupload it to your server.


To make the Vehicle spawnable with all parts you need to do the second step:
  • Navigate to your "ServerProfileFolder/Trader" again
  • You should see all your trader configs in there. open up the TraderVehicleParts.txt
  • Implement the vehicle like this:
<VehicleParts> ExpansionUAZ ExpansionUAZWheel ExpansionUAZWheel ExpansionUAZWheel ExpansionUAZWheel ExpansionUAZDoorDriver ExpansionUAZDoorCoDriver ExpansionUAZDoorCargo1 ExpansionUAZDoorCargo2 ExpansionIgniterPlug GlowPlug SparkPlug CarBattery CarRadiator HeadlightH7 HeadlightH7
ExpansionUAZ = Classname of the Vehicle Everything down under = Parts that get attached to the Vehicle by the trader if you buy the Vehicle

Now that you have implemented the Vehicle in your Cofig save the file and reupload it to your server.


If you want to take another trader as your vehicle trader you need to follow the third step:
  • Navigate to your "ServerProfileFolder/Trader"
  • You should see all your trader configs in there. open up the TraderObjects.txt
  • Follow the commented layout:
[/b]This is your standard TraderFormat:[/b] <TraderMarker> 0 // Trader ID <TraderMarkerPosition> 3696.58, 402.012, 5960.86 // X,Y,Z axis(examplecoordinates) <TraderMarkerSafezone> 80 // Safezone Radius To add an vehicle spawn to your trader you need to add the following lines to your Format: <VehicleSpawn> 3738.86, 402.635, 5998.72 // Vehicle Spawnpoint X,Y,Z axis <VehicleSpawnOri> 141.25, 0, 0 // Orientation (Yaw, Pitch, Roll) So in the end your trader should look like this: <TraderMarker> 0 // Trader ID <TraderMarkerPosition> 3696.58, 402.012, 5960.86 // X,Y,Z axis(examplecoordinates) <TraderMarkerSafezone> 80 // Safezone Radius <VehicleSpawn> 3738.86, 402.635, 5998.72 // Vehicle Spawnpoint X,Y,Z axis <VehicleSpawnOri> 141.25, 0, 0 // Orientation (Yaw, Pitch, Roll) All numbers are example numbers and should be edited

Now that you have implemented the VehicleSpawnpoint to your trader save the file and reupload it to your server.

Best regards
Curiosity
Last edited by Curiosity; Oct 28, 2020 @ 5:28am
YarightNoway Aug 3, 2022 @ 7:37am 
you're a god
Prefab Nov 21, 2022 @ 6:59pm 
hi! how to unlock car by admin when key is lost?
< >
Showing 1-7 of 7 comments
Per page: 1530 50