Мод TraderPlus_BoatScript_Patch для DayZ (дейз). Установлен на 1 серверах RiseOfServers. Ниже: серверы с модом и описание Workshop.
TraderPlus BoatScript Patch
Boats are second-class citizens across the TraderPlus ecosystem. In Enfusion, BoatScript and CarScript are siblings — both extend Transport, neither extends the other — so every feature written against CarScript silently skips boats. Buy a boat from a trader and it lands on top of you instead of giving you a receipt. Try to park one in a garage and the NPC can't see it. There's no lock, so anyone can sail off with it.
This mod makes boats work everywhere cars already do: trader purchases, receipts, deployment, packing, garage storage, and PIN locking. It also adds a service counter to the garage — refuel and repair your stored vehicles without pulling them out first.
Nothing in TraderPlus, Garage, or CarLock is edited. It's all script overrides, so those mods can keep updating independently.
Built for the MaharlikaPH community and tested against its own custom boats, so modded hulls are supported, not just the vanilla Zodiac.
Features
Boat Locking
[*]PIN-based locking for boats, mirroring CarLock — attach a Boat Lock, set a 4-digit PIN, and the boat is yours
[*]Boat Lock Pick for breaking into someone else's boat, with safezone protection
[*]Locked boats can't have their spark plug pulled
[*]Hotkey toggle to lock and unlock the nearest boat
[*]Owner and PIN persist across server restarts
Trader Support
[*]Buying a boat gives you a receipt, exactly like a car — no more boats spawning at your feet
[*]Deploy the receipt to place a boat, or throw it and it lands where it hits the water
[*]Boats arrive fuelled, plugged, and locked to you
[*]Selling boats back to a trader
[*]Pack a boat back into a receipt with the existing TraderPlus wrench — no new item to add to your traders
[*]Insurance and collateral carried through purchase, packing and redeployment
[*]Also fixes car deployment. TraderPlus reads a hologram projection position that can come back as a zero vector, spawning the vehicle at map origin. Cars and boats now both resolve a real position before spawning
Garage Support
[*]Boat garages — park and retrieve boats at a dock the same way you do cars at a parking spot
[*]Garage NPCs are typed "Car" or "Boat", so a car can never be retrieved into the water and a boat can never be retrieved onto dry land
[*]Lock survives storage: a boat comes back out still locked, with its PIN intact
[*]Health, fuel and cargo saved with the boat
[*]Separate park-in and park-out pricing for boats, or fall back to your existing car pricing
[*]Modded boats detected automatically via config inheritance, with an optional whitelist if you'd rather be explicit
Garage Servicing
[*]Refuel and Repair buttons added to the garage menu, priced separately
[*]Repair covers wheels, doors, hood, trunk and other attachments — not just the engine
[*]Trunk contents are deliberately left alone, so repair can't be used to launder a boot full of ruined guns for one flat fee
[*]Fuel and condition bars for the selected vehicle, so you can see what's worth paying for
[*]Servicing works on the stored entry — nothing is spawned, and it applies to boats and cars alike
[*]RepairToFraction lets you decide whether a repair hands back showroom condition or something short of it
This mod must be installed on both the server and the client.
Load order: TraderPlus must load before this mod.
Installation
1. Install the mod on the server and add it to your client-side mod list.
2. Stop the server.
3. Back up your garage config:
\TraderPlus\TraderPlusConfig\TraderPlusGarageConfig.json
4. Add the new keys. The config file is only rewritten when its Version changes, so installing the mod will not add them on its own.
Paste these at the top level, anywhere among the existing settings:
"AllowBoatParking": 1,
"BoatParkInCost": -1,
"BoatParkOutCost": -1,
"BoatDetectionRadius": 12.0,
"BoatDockClearance": ,
"BoatClasses": [],
"AllowRefuel": 1,
"AllowRepair": 1,
"RefuelCost": 150,
"RepairCost": 400,
"RepairToFraction": 1.0,
"BoatGarageIsBoatOnly": "This is a boat garage - it can only handle boats!",
"CarGarageIsCarOnly": "This garage can't handle boats - use a boat garage!",
"BoatDockOccupied": "The dock is not clear!",
"BoatNotYours": "You do not have the right to park this boat!",
"BoatHasMember": "The boat still has someone on board!",
"BoatParkingDisabled": "Boat parking is disabled on this server.",
"ServiceRefuelDone": "The vehicle has been refuelled.",
"ServiceRepairDone": "The vehicle has been repaired.",
"ServiceFuelFull": "That vehicle already has a full tank.",
"ServiceHealthFull": "That vehicle is already in good condition.",
"ServiceDisabled": "That service isn't available here."
Alternative: you can delete the config and let the server regenerate it with everything included — but regeneration resets every setting to default and wipes your NPC list, so you'd have to restore your NPCs and any customised values from the backup. Adding the keys by hand is less work.
5. Give each garage NPC a Type. Add the field to every entry in the NPCs array:
{
"ClassName": "TraderPlusSign",
"Position": ,
"Orientation": ,
"ParkingPosition": ,
"ParkingOrientation": [-1.12, 0.0, 0.0],
"Clothes": [],
"Type": "Boat"
}
Type is either "Car" or "Boat". Anything other than "Boat" is treated as a car garage.
For a boat garage, ParkingPosition is the dock. It must be in water deep enough to float the largest hull you allow, and clear of piers and other objects.
6. Start the server.
Settings reference
[*]BoatParkInCost / BoatParkOutCost — -1 uses your existing ParkInCost and ParkOutCost
[*]BoatDetectionRadius — how far from the dock the garage looks for a boat. Raise it for very large hulls
[*]BoatDockClearance — the box checked for obstructions before a boat is spawned
[*]BoatClasses — leave empty and any boat is recognised automatically. Fill it in to restrict which boats can be stored
[*]RefuelCost / RepairCost — charged per service
[*]RepairToFraction — 1.0 restores to pristine, 0.9 leaves a little wear behind
[*]AllowRefuel / AllowRepair — set to 0 to disable a service
[*]VehicleMustHaveLock and SaveVehicleLock apply to boats exactly as they do to cars
If you want to give suggestions or report bugs, feel free to reach out via Discord.
https://i.imgur.com/INFdKl1.png