Spoiler

From Crys, 10 Years ago, written in Lua, viewed 742 times.
URL https://paste.godclan.hu/view/PrQvxh-a Embed
Download Paste or View Raw
  1. addEventHandler("onElementDataChange", root, function (key, old)
  2.         if g_map.mode ~= 2 and g_map.mode ~= 0 then return end
  3.         if getElementType(source) == "player" then
  4.                 if key == "state" then
  5.                         if getElementData(source, key) == "alive" then
  6.                                 local v = getPedOccupiedVehicle(source)
  7.                                 if v then
  8.                                         addVehicleUpgrade(v, 1139)
  9.                                 end
  10.                         end
  11.                 end
  12.         end
  13. end)

Reply to "Spoiler"

Here you can reply to the paste above