Very similar to my piggyback script, decided to make a carry someone over your shoulder script since I found a great animation.
This is completely standalone, no framework required.
Instructions on how to use: Type /carry close to someone then either person can cancel by again doing /carry
Link to code:
https://github.com/rubbertoe98/FiveM-Scripts/tree/master/CarryPeople
Screenshots/Gifs:
If you enjoyed this, reply a nice msg or a
emote, enjoy!
Feel free to make improvements with PRs
95 Likes
@Germicuello Yes, it is standalone (Doesn’t have any dependencies)
2 Likes
https://plays.tv/video/5d7add5a1cdb038970/not-attaching
How can i fix this? happens with your piggyback script too
3 Likes
@stanstill Its another script that’s causing this, could be an anticheat you have thats calling DetachEntity every set interval.
2 Likes
Any idea which one it could be? have you had any reports
1 Like
No sorry, just try disable half your resources and see if it works, if it does you know the problem is in that half and half again etc. if it doesn’t problem is in the other half! Otherwise you could a find all in files for “DetachEntity”
1 Like
Found my issue it was the esx_policejob in a while loop it was detaching the player if they arent being dragged
1 Like
Citizen.CreateThread(function()
while true do
Wait(0)
--if IsHandcuffed then
if IsDragged then
local ped = GetPlayerPed(GetPlayerFromServerId(CopPed))
local myped = GetPlayerPed(-1)
AttachEntityToEntity(myped, ped, 11816, 0.54, 0.54, 0.0, 0.0, 0.0, 0.0, false, false, false, false, 2, true)
else
DetachEntity(GetPlayerPed(-1), true, false)
end
--end
end
end)
Mine was like this so it would constantly detach the player if they were not being dragged, so i unhashed the IsHandcuffed and it worked fine. Check some of the resources for while true loops with DetachEntity(GetPlayerPed(-1) inside
1 Like
It’s a glitch with a script released on these forums that lets you store people in vehicles.
Possible implementation of being able to use this on dead players? Let’s say in combination with ESX_ambulancejob and “isdead” native? You could carry on wounded friend from firefight, or be able to steal dead bodies out of the scene 
Script works GREAT, I have this and the PiggyBack with over 300+ scripts running. No issues, drag and drop and its good. TY For the release.
1 Like
Exion
19
I think you forgot to set that you can only max pick 1 instead of stacking like piggyback, How do I do that?
That was intentional, if you want to stop stacking you can add a check for IsEntityPlayingAnim https://runtime.fivem.net/doc/natives/#_0x1F0B79228E461EC9