Exports (client)
Enable
Enable/disable automatic saving of vehicles for a client.
Parameters:
enable - bool
- true to enable, false to disable
UpdateVehicle
Allows manually updating a vehicle if necessary.
Parameters:
vehicle - int
- Valid vehicle entity handle
GetVehiclePosition
Returns the position of a single vehicle.
Parameters:
plate - string
- The license plate text of a vehicle.
Returns:
vector3?
- The position of the vehicle or nil.
GetVehiclePositions
Returns the positions of several given vehicles.
Parameters:
... - string
- The license plates of several vehicles as parameters.
Returns:
dictionary<plate, position>
- The positions of the vehicles. Can be empty if none was found.
DeleteVehicle
Deletes a vehicle from the world and the internal table so that it doesn't respawn.
Parameters:
vehicle - int
- The vehicle to delete.
keepInWorld? - bool
- If the vehicle should stay in the world.
DeleteVehicleOnServer
Delete a vehicle without having access to the entity directly. At least one of the first three parameters must be provided.
Parameters:
identifier? - string
- The unique identifier provided by AdvancedParking.
networkId? - int
- The vehicle entity's network id.
plate? - string
- The vehicles license plate text.
keepInWorld? - bool
- If the vehicle should stay in the world.
Last updated