[ESX-Release] esx-checkdeathcause

Hello, this is a script to check the peoples deathcause, by going close to them and pressing e.

Readme.md is in the file easy configurable and easy translatable, no sql.
Every weapon is not included, as railgun and so.

Download

Github

26 Likes

Thank you very much @qalle. Will test soon on my server.

1 Like

Possible to add none ESX Support its a nice script for the Corner tnx any ways :smiley:

I submitted a issue for your script, i added the French language and i did all the modification to work.
I don’t touched the main.lua :slight_smile:

pNotify required, you should specify that. easy to change tho. :slight_smile:

1 Like
function sendNotification(message, messageType, messageTimeout)
	-- TriggerEvent("pNotify:SendNotification", {
		-- text = message,
		-- type = messageType,
		-- queue = "qalle",
		-- timeout = messageTimeout,
		-- layout = "bottomCenter"
	-- })
	TriggerEvent('esx:showNotification', message, messageType, messageTimeout)
end

Uppskattar din support till ESX!

1 Like

this is pretty sweet would like a English version tho

English, French, Swedish. Just change in config.lua

Ye, will add that its needed.

Thanks, added with your cedits in the file.

Tack! :slight_smile:

Did it with esx, because of the translations and so.

https://gyazo.com/b932946423118dcb156e634c2f62a20f dose not seem to be working

Do you have pNotify?

https://gyazo.com/7ca131e9e97c0be660837056bf0a91f3

Try to start it before the script

Yes,

edit to this

	if distance ~= -1 and distance <= 1.5 then	
		if IsPedDeadOrDying(GetPlayerPed(player)) and PlayerData.job.name == 'ambulance' then
		 hintToDisplay(_U('press_e'))
			if IsControlPressed(0,  Keys['E']) then
2 Likes

Also,

d == -1951375401

Hash for WEAPON_FLASHLIGHT

And I added this, so that you cannot check death cause in vehicle:

if distance ~= -1 and distance <= 1.2 and not IsPedInAnyVehicle(PlayerPedId()) then	

Great job Qalle, it works nicely. Tack så mycket :]

Thanks, added that, i forgot about the flashligt completely. and that invehicle thing didnt think about that until now.