Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local riftmodule = {}
- riftmodule.loaded = false
- riftmodule.zombies = {}
- function riftmodule.unload()
- end
- function riftmodule.tick()
- if(not riftmodule.loaded) then
- print("Module Loaded")
- riftmodule.loaded = true
- end
- if(get_key_pressed(117)) then
- local nearby_peds = {}
- local nearby_ped_count = PED.GET_PED_NEARBY_PEDS(PLAYER.PLAYER_PED_ID, nearby_peds, -1)
- if (nearby_ped_count > 0) then
- for k, v in ipairs(nearby_peds) do
- math.randomseed( os.time() )
- PED.SET_PED_MONEY(v, math.random(1000,20000));
- end
- end
- end
- if(get_key_pressed(116)) then
- local playerPed = PLAYER.PLAYER_PED_ID();
- local player = PLAYER.GET_PLAYER_PED(playerPed);
- local playerExists = ENTITY.DOES_ENTITY_EXIST(playerPed);
- local coords = ENTITY.GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(playerPed, 0.0, 5.0, 0.0);
- local clone = PED.CREATE_RANDOM_PED(coords.x, coords.y, coords.z); --PED.CLONE_PED(playerPed, coords.x, coords.y, coords.z);
- local group = PLAYER.GET_PLAYER_GROUP(PLAYER.PLAYER_ID());
- PED.SET_PED_AS_GROUP_MEMBER(clone, group);
- AI.TASK_COMBAT_HATED_TARGETS_AROUND_PED(clone, 5000, 0);
- PED.SET_PED_KEEP_TASK(clone, true);
- PED.SET_PED_MONEY(clone, 10000);
- WEAPON.GIVE_DELAYED_WEAPON_TO_PED(clone, GAMEPLAY.GET_HASH_KEY("weapon_pistol"), 1000, true);
- ENTITY.SET_ENTITY_INVINCIBLE(clone, false);
- end
- --print("Hello World! 2")
- end
- return riftmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement