Hiya! My First Script utilizing FiveM Lua.
This script lets gamers suicide with a chat command “/suicide.” It let’s them simply suicide quite then going for ex vMenu>Participant Associated Choices>Participant Choices> Commit Suicide as in some Roleplay eventualities timing doesn’t allow that. It additionally setup in a means in order that if the ped doesn’t have a fight pistol or pistol it mechanically makes use of a capsule in an effort to full the duty. The script additionally fires a shot as an alternative of simply the animation.
Credit score To @Scott_UK For serving to with the bottom thought of the script