addEventHandler("onElementDataChange", root, function (key, old) if g_map.mode ~= 2 and g_map.mode ~= 0 then return end if getElementType(source) == "player" then if key == "state" then if getElementData(source, key) == "alive" then local v = getPedOccupiedVehicle(source) if v then addVehicleUpgrade(v, 1139) end end end end end)