All exports available on the server.
BuySpot
Buys a parking spot for a player using server-side validation and payment logic.
Server
exports.worry_vpark:BuySpot(source)
| Parameter | Type | Required | Description |
|---|
| source | number | Yes | The player source (server ID). |
Returns
success (boolean)
reason (string)
insertId (number | nil) — parking row id when purchase succeeds
StoreVehicle
Marks an owned vehicle as stored in garage state without charging impound.
Server
exports.worry_vpark:StoreVehicle(source, plate)
| Parameter | Type | Required | Description |
|---|
| source | number | Yes | The player source (server ID). |
| plate | string | Yes | Vehicle plate to store. |
Returns
success (boolean)
reason (string)
ImpoundVehicle
Moves an owned vehicle back to garage state, optionally charging impound.
Server
exports.worry_vpark:ImpoundVehicle(source, plate, chargePlayer)
| Parameter | Type | Required | Description |
|---|
| source | number | Yes | The player source (server ID). |
| plate | string | Yes | Vehicle plate to impound/store. |
| chargePlayer | boolean | No | true = charges Config.Impound; false/nil = free. |
Returns
success (boolean)
reason (string)
amountCharged (number)
Looking for an export we don’t have listed here? Contact us and we’ll do what we can!