[Help] Staff Revive script

i keep on getting modders in my rp server killing everyone, ive been searching for a script but i cant find one instead of people can only do /revive once they have been dead for for 5 minuets witch is not fair on them as they got RDM by a modder. im just wondering if theres a revive all script out there or a staff revive script i cant seem to find one.

2 Likes

If you are using esx you can just type /revive (id).

when every one dies on the server it takes a longtime to revive everyone on the weekend when i have 60-80 people in my server it when a modder comes in it be just easy to ban the modder that killed everyone and then revive all

1 Like

Just create a command which loops though all players are revives them

1 Like

I’ve done something really similar to this before. Pretty much the same thing and I have posted it somewhere on here. Just a matter of finding it :laughing: I’ll look around. It would of been years ago.

thanks. yh ive been searching around for days but no luck so far

same here.

Hello,
I’ve had a script that i made long ago for reviving and respawning players, I’ve added that feature to the resource today.
here is my post I hope it helps managing your server.

can i get a link that one is broken?

1 Like

Can I setup ace permissions for the admin revive commands?

Server:

RegisterCommand("reviveall", function(source, args)
    for _, player in GetActivePlayers() do
        TriggerClientEvent("reviveplayer", player)
    end
end, true)

Client:

RegisterNetEvent("reviveplayer")
AddEventHandler("reviveplayer", function()
    ResurrectPed(PlayerPedId())
    ClearPedTasksImmediately(PlayerPedId())
end)

The command can only be executed through the server console. You guys ought to be ashamed of yourselves.

3 Likes

how would i edit this to revive only a single player?

are u using esx?

yeah i am

if you have esx_ambulancejob installed its already included

its there. but it doesnt work.

how can i make it so everyone can revive bc rn only admins can

Grammer?