On vehicle given

This event is triggered after a player receives a vehicle in any way

Event

AddEventHandler("dealerships_creator:giveVehicleToPlayerId", function(playerId, vehicleName, plate)

end)

Parameters

NameData TypeDescription

playerId

integer

The player server ID who received the vehicle

vehicleName

string

The vehicle spawn name

plate

string

The vehicle's plate

Example

AddEventHandler("dealerships_creator:giveVehicleToPlayerId", function(playerId, vehicleName, plate)
    -- Do anything you want
end)

Last updated