I’ve seen a few requests for this. This is a simple script that will save a player’s death status to the database. If the player ALT+F4’s to avoid dying, they will just spawn dead again.
This is compatible with esx_ambulancejob. esx_ambulancejob added their own implementation to the resource in this commit. Feel free to keep using this resource, or update ambulancejob if you don’t want an extra resource.
Requires: Base Events, EssentialMode Extended and MySQL Async.
Instructions: Download folder, modify database, start the resource.
ALTER TABLE `users` ADD `isDead` INT NOT NULL DEFAULT '0' AFTER `name`;
I’ll try to provide limited support if you provide adequate information. Feel free to fork and modify it to meet your needs.