Advertisement
Guest User

Untitled

a guest
Apr 27th, 2015
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. local moneyspawn = {}
  2. function moneyspawn.unload()
  3. print("Money Unloaded")
  4. end
  5. function moneyspawn.tick()
  6. local playerPosition = ENTITY.GET_ENTITY_COORDS(PLAYER.PLAYER_PED_ID(), false)
  7. if(playerExists) then
  8. if(get_key_pressed(96)) then
  9. print("Money Spawned")
  10. OBJECT.CREATE_AMBIENT_PICKUP(GAMEPLAY.GET_HASH_KEY("PICKUP_MONEY_VARIABLE"), playerPosition.x, playerPosition.y, playerPosition.z, 0, 10000, 1, false, true)
  11. end
  12. end
  13. end
  14.  
  15. return moneyspawn
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement