Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local moneyspawn = {}
- function moneyspawn.unload()
- print("Money Unloaded")
- end
- function moneyspawn.tick()
- local playerPosition = ENTITY.GET_ENTITY_COORDS(PLAYER.PLAYER_PED_ID(), false)
- if(playerExists) then
- if(get_key_pressed(96)) then
- print("Money Spawned")
- OBJECT.CREATE_AMBIENT_PICKUP(GAMEPLAY.GET_HASH_KEY("PICKUP_MONEY_VARIABLE"), playerPosition.x, playerPosition.y, playerPosition.z, 0, 10000, 1, false, true)
- end
- end
- end
- return moneyspawn
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement