Advertisement
Guest User

Untitled

a guest
May 26th, 2015
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. local basemodule = {}
  2. basemodule.GUI = Libs["GUI"]
  3. function basemodule.unload()
  4.  
  5. end
  6. function basemodule.giveWeapon(weapon)
  7. WEAPON.GIVE_DELAYED_WEAPON_TO_PED(PLAYER.PLAYER_PED_ID(), GAMEPLAY.GET_HASH_KEY(weapon), 1000, true)
  8. end
  9. function basemodule.init()
  10. basemodule.GUI.addButton("Give Me RAILGUN",basemodule.giveWeapon,"WEAPON_RAILGUN",0,0.2,0.05,0.05)
  11. end
  12. function basemodule.tick()
  13. basemodule.GUI.tick()
  14. end
  15.  
  16.  
  17. return basemodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement