[Release] Suicide Chat Command

Hello! My First Script using FiveM Lua.

This script lets players suicide with a chat command “/suicide.” It let’s them easily suicide rather then going for ex vMenu>Player Related Options>Player Options> Commit Suicide as in some Roleplay scenarios timing does not permit that. It also setup in a way so that if the ped does not have a combat pistol or pistol it automatically uses a pill in order to complete the task. The script also fires a shot instead of just the animation.

Preview

Credit To @Scott_UK For helping with the base idea of the script

2 Likes

Hey thanks for the script but you should be using fxmanifest.lua and not the depreciated __resource.lua, you can view the updated documentation here: Resource manifest

Hey, yea I used fxmanifest however for some reason it kept giving me errors and __resource worked just fine so I just used that

I want to add mythic_progbar, where do I go?

I am not sure as I haven’t used that resource or tried combing the 2 but your free to try it out

Usually via exports - those are shared between all resources if they are defined properly within the “progbar” resource and should work just fine.
I would be very surprised if “mythic_progbar” had no documentation on how you’d implement a progress bar from that to some other resource.

how to add mythic_progbar

Gotta do a google search my friend, even has the exports for it.