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.
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.
Possible to add none ESX Support its a nice script for the Corner tnx any ways
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
pNotify required, you should specify that. easy to change tho.
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!
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!
Did it with esx, because of the translations and so.
Do you have pNotify?
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
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.