Process:
- Players uses the in-game item
- Animation of eating the pill plays (Which can be configured in config.lua)
- After specified amount of time the pills kicks in and kills the player with screen event
- Download the newest version from github
- Put it in the resources/[standalone]/
- Add these items to your qbcore shared/items.lua
- Configure the resource in config.lua
- You are done :)
['suicidepill'] = { ['name'] = 'suicidepill', ['label'] = 'Suicide pill', ['weight'] = 25, ['type'] = 'item', ['image'] = 'YOURPNGHERE.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'When life hits the bottom :c' },
['fakesuicidepill'] = { ['name'] = 'fakesuicidepill', ['label'] = 'Fake suicide pill', ['weight'] = 25, ['type'] = 'item', ['image'] = 'YOURPNGHERE.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'A pill that could help you escape a ugly situation' },
If you need more help contact me on discord -> IngPleb#0001