Advertisement
Guest User

mbag.lua

a guest
May 18th, 2014
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. mbag = {}
  2.  
  3. ---
  4. -- This loads the textures. You can add as many
  5. -- as you want.
  6. function TestItemIcons.loadTextures()
  7. getTexture("Item_daypack.png");
  8. getTexture("Item_bugoutbag.png");
  9. getTexture("Item_rucksack.png");
  10. end
  11.  
  12. ---
  13. -- This will add the item to the inventory for
  14. -- testing purposes.
  15. function TestItemIcons.giveItems()
  16. getSpecificPlayer(0):getInventory():AddItem("Item_rucksack.png");
  17. end
  18.  
  19. Events.OnGameBoot.Add(TestItemIcons.loadTextures);
  20. Events.OnGameStart.Add(TestItemIcons.giveItems);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement