sheen
1
Hello everybody.
Im still beginner at lua so i cant do it so i wanna ask the forum.
I need resource when i type /cpr i will get this animation - and when i type /cpr again animations will stop.
Im not sure but this name “cpr_loop_paramedic” is maybe that animation.
Video with animation:
Thanks for help everybody.
1 Like
This is not a feature request, I moved it for you. Please ask in the correct category next time.
1 Like
Was just about to request it aswell, I wonder if the subect could aactually get into the recovery position aswell as
Smurf
6
I mean I could make you the script, just not in lua, if your okay with c# then I could make u the script np
1 Like
Would it still work the same buddy?
can you maybe reupload this?
Could u re-upload it to somewhere else?
Love the idea, one conserne tho is it’s closed source, would be handy to be able to change the /cpr command, and some access controle.
Smurf
16
I don’t have the code anymore sorry, I just made it real quick for that guy not thinking there was gonna be this many people that were gonna be interested. Its really not that difficult, its like 10 lines of code, you do fire a event at server for incoming chat message, you check if the message starts with “/cpr” then from the server u fire event at the clients script that starts the animation.
Sorry to bother you, I’d be interested in downloading this, but both links need you to pay at the moment. Could you upload it to some thing like Google Drive, Dropbox or OneDrive so I can download it?
Just use these lines:
RegisterCommand("cpr", function(source, args, raw)
TriggerEvent("FakeRevive")
end, false)
RegisterNetEvent("FakeRevive")
AddEventHandler("FakeRevive", function(inputText)
RequestAnimDict("mini@cpr@char_a@cpr_def")
TaskPlayAnim(GetPlayerPed(-1),"mini@cpr@char_a@cpr_def", "cpr_intro", 1.0,-1.0, 5000, 1, 1, true, true, true)
end)
This should normally work if you type /cpr .
But I don’t know if these are the correct animations, those you can probably find in one of the many revive scripts.
Thanks, I’ll try it out later