thunder-stallExports and Events

Server Exports

GetCollisionsByPlate

Gets the number of collisions of a vehicle by its plate.

-- param: string -- Plate -- Vehicle's plate
-- return: int -- The number of collisions
local colissions = exports["thunder-stall"]:GetCollisionsByPlate(Plate)

ResetStall

Every time you repair the vehicle or use fix, for example, you should notify the script to reset the number of collisions.

-- param: string -- Plate -- Plate of vehicle
exports["thunder-stall"]:ResetStall(Plate)