I have made the med to work with F6 menu on ambulance
First of all you go to esx_ambulancejob Client Side job.lu (in my case) open Ambulance Actions Menu and put the label of your med
{label = "Check Pulse", value = 'check'},
After you go to action values and put this to the end
elseif data.current.value == 'check' then
target = GetPlayerServerId(closestPlayer)
TriggerServerEvent('medSystem:check', target)
end
After that you go to Med System Server Side and paste this
RegisterServerEvent('medSystem:check')
AddEventHandler('medSystem:check', function(target)
local xPlayer = ESX.GetPlayerFromId(source)
if xPlayer["job"]["name"] == "ambulance" then
TriggerClientEvent('medSystem:send', target, source)
end
end)
and you are done
Remember to check the Closest Distance as default is 1.0 if you want to raise it it is at the start of action value in Ambulance Actions Menu
Just like me if You were looking for the Fix to this to Make it work…
Well i have a Gift for You all as a Community…
Special Thanks to Between HollywoodiOwnu Gaming @ Clout RP Server & My self we bring you the Fix for this Edit to Fix the Script Coding… Now it Works for Anyone that wants it… with editing of one area you can add it to the JOB you need it on and works like a Charm…
so To get it to Work Correctly and The way its set… This will Allow you to Add it to the PD “f6” menu as it sits… or you can Reque it EMS menu if you need to as well…
Say goodby to asking how many Fingers (or what ever Slang) to get them to say what position in the Server they are from now on…
Blockquote Client Side File
{label = “Check Pulse”, value = ‘check’},
elseif action == ‘check’ then
target = GetPlayerServerId(closestPlayer)
TriggerServerEvent(‘medSystem:check’, target)