this is my very first script
it allows specific jobs to loot dead corpse, of course with a cute animation by pressing ‘E’.
feel free to check and update my mistakes
Demo
Installing
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
Download
Credits
Please read Credits.md for more information.