Describe the bug
Apparently, this event is not triggered when vehicle has above a certain amount of health.
Steps to reproduce
addCommandHandler("spawncar", function(player)
local x, y, z = getElementPosition(player)
local car = createVehicle(400, x, y, z, 0, 0, 0)
setElementHealth(car, 3000)
addEventHandler("onVehicleDamage", car, function(loss)
iprint("loss", loss, "health", getElementHealth(source))
-- this only starts printing on about ~2050 health
end)
end)
Version
v1.6-release-24124
Additional context
No response
Relevant log output
Security Policy
Describe the bug
Apparently, this event is not triggered when vehicle has above a certain amount of health.
Steps to reproduce
Version
v1.6-release-24124
Additional context
No response
Relevant log output
Security Policy