this is my very first script
it allows specific jobs to loot dead corpse, of course with a cute animation by pressing 'E'.
only works with ESX
after download/clone rename the folder from
irforce_lootdeadcorpsee-master
to
irforce_lootdeadcorpse
then goto to the address below and change the jobs name of your liking
irforce_lootdeadcorpse/client/main.lua:29
just replace the "jobname-here" with the job name you like for example:
if IsControlJustReleased(0, 38) and ( ESX.PlayerData["job"]["name"] == "fbi" or ESX.PlayerData["job"]["name"] == "police" ) then
or if you like to allow all players to loot, just remove the code below
and ( ESX.PlayerData["job"]["name"] == "jobname-here" or ESX.PlayerData["job"]["name"] == "jobname-here" )
and it will looks like this:
if IsControlJustReleased(0, 38) then
also you can change config file to your liking
and for the final step put the line below in your server.cfg file
start irforce_lootdeadcorpse
Donations are never necessary, but it is highly appreciated. I put in average 8 Hours a day to develop or optimize the scripts. Please consider donation if you enjoyed my work and as always please only donate if the money is yours and it will not hurt you in anyway. Thanks a lot ❤️
[Release] [ESX] IRforCe Loot The Dead Corpse
Please read Credits.md for more information.