With this script you can loot dead corps. this script also works with zombie scripts, if you add the ped model name to the list inside config.lua.
- This loot system will not work if you dont have qb-target.
- make sure
qb-target
is installedcorrectly
on your server. - check if you have
setr UseTarget true
in your server.cfg or this script will not work.
- create a folder in
resources
[mh] - put the
mh-lootpeds
inresources/[mh]/
- open F8 type
refresh
- ater
refresh
typeensure mh-lootpeds
or you can restart the server. - don't forget the admin command to
enable
ordisable
the loot system.
/pedloot On
/pedloot Off
- Enable Loot System For All Players
TriggerEvent('qb-lootpeds:server:enable')
- Disable Loot System For All Players
TriggerEvent('qb-lootpeds:server:disable')