Vehicle window broken

Event

RegisterNetEvent("vehicles_keys:vehicleWindowBroken", function(playerId, vehicleNetId)

end)

Parameters

NameData TypeDescription

playerId

integer

The player server ID who broke the window

vehicleNetId

integer (net ID)

The vehicle network ID

Example

RegisterNetEvent("vehicles_keys:vehicleWindowBroken", function(playerId, vehicleNetId)
    local vehicle = NetworkGetEntityFromNetworkId(vehicleNetId)

    print(GetPlayerName(playerId) .. " broke the window of plate " .. GetVehicleNumberPlateText(vehicle))
end)

Last updated