/qb-suicidepill

Primary LanguageLuaMIT LicenseMIT

SUICIDE PILL & FAKE SUICIDE PILL

SUICIDE PILL

Allows players to use in-game item called SUICIDE PILL to kill themselfs therefore commit suicide. You can configure all the aspects of such event.

Process:

  1. Players uses the in-game item
  2. Animation of eating the pill plays (Which can be configured in config.lua)
  3. After specified amount of time the pills kicks in and kills the player with screen event

FAKE SUICIDE PILL

Grants players ability to fake their own death. The process is same as in the SUICIDE PILL but the pill doesnt kill you. It fakes your death and leaves you lying on the ground for specific amount of time.

INSTALLATION

  1. Download the newest version from github
  2. Put it in the resources/[standalone]/
  3. Add these items to your qbcore shared/items.lua
  4. ['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' },
  5. Configure the resource in config.lua
  6. You are done :)

If you need more help contact me on discord -> IngPleb#0001