Advertisement
Combreal

SwapVehi.lua

Apr 19th, 2014
610
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.98 KB | None | 0 0
  1. -- Test Swaping Vehicles --
  2.  
  3. function GetRequiredVersion()   return 200 end
  4.  
  5. function OnScriptLoad(process, game, persistent) end
  6.  
  7. function OnObjectCreationAttempt(mapId, parentId, player)
  8.     if mapId == gettagid("vehi", "vehicles\\rwarthog\\rwarthog") then
  9.         return gettagid("vehi", "vehicles\\banshee\\banshee_mp")
  10.     end
  11.     if mapId == gettagid("vehi", "vehicles\\warthog\\mp_warthog") then
  12.         return gettagid("vehi", "vehicles\\banshee\\banshee_mp")
  13.     end
  14.     if mapId == gettagid("vehi", "vehicles\\ghost\\ghost_mp") then
  15.         return gettagid("vehi", "vehicles\\banshee\\banshee_mp")
  16.     end
  17.     if mapId == gettagid("vehi", "vehicles\\c gun turret\\c gun turret_mp") then
  18.         return gettagid("vehi", "vehicles\\banshee\\banshee_mp")
  19.     end
  20.     if mapId == gettagid("vehi", "vehicles\\scorpion\\scorpion_mp") then
  21.         return gettagid("vehi", "vehicles\\banshee\\banshee_mp")
  22.     end
  23.     --local m_vehicleIda = createobject(gettagid("vehi", "vehicles\\banshee\\banshee_mp"), 0, 30, true, 51.35,79.1,0.16+1)
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement