/heal with permission

Hello guys i’m need help this script

RegisterNetEvent("heal")
AddEventHandler('heal', function()
	local ped = GetPlayerPed(-1)
 
	if DoesEntityExist(ped) and not IsEntityDead(ped) then
		SetEntityHealth(ped, 200)
		ragdol = 0
	end
end)

I would like to use the script for doctors but limit it to access 1

script : Scripts Removed

Thank for your help !

1 Like