Exports
Client exports for garages and showrooms that spawn cars.
| Export | What it does |
|---|---|
ApplyDisplay(vehicle, plate) | Puts a plate's saved stance, rainbow neons and livery on a parked display car. Neons need the engine on |
PrefetchDisplay(plates) | Loads the stance and neons for a list of plates at once (up to 50), so ApplyDisplay can put them on as each car is created |
LoadStance(vehicle) | Loads a freshly spawned car's stance and puts it on before returning, so a garage can fade in with it there. Waits 2.5 seconds at most and returns true or false |
exports['fusing-customs']:PrefetchDisplay({ 'ABC123', 'XYZ789' })
exports['fusing-customs']:ApplyDisplay(vehicle, 'ABC123')
local veh = CreateVehicle(model, coords.x, coords.y, coords.z, heading, true, false)
exports['fusing-customs']:LoadStance(veh)