Vehicle window broken
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
RegisterNetEvent("vehicles_keys:vehicleWindowBroken", function(playerId, vehicleNetId)
end)
playerId
integer
The player server ID who broke the window
vehicleNetId
integer (net ID)
The vehicle network ID
RegisterNetEvent("vehicles_keys:vehicleWindowBroken", function(playerId, vehicleNetId)
local vehicle = NetworkGetEntityFromNetworkId(vehicleNetId)
print(GetPlayerName(playerId) .. " broke the window of plate " .. GetVehicleNumberPlateText(vehicle))
end)