Spoiler

By Crys, 5 Years ago (2014-08-22 23:02:37), written in Lua, viewed 336 times.
URL https://paste.godclan.hu/view/PrQvxh-a Embed
Download Paste or View RawExpand paste to full width of browser
  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