[Release] [PAID] [ESX] Drag Body Animation

With this animation you can drag some body(dead or alive PLAYER) from point A to point B

:star2: | This script has protection to bug in the drag animation:

  • if the dragged (target) person’s game crashed
  • if the dragging (you) person’s game crashed
  • if the dragging (you) person was killed
  • if resource stop

If dragged person is alive, that person must confirm dragging. If dragged person is dead, person do not have to.

:star2: | Resmon after script start
afterstart

:star2: | Resmon if players are in animation
inanimation

:star2: | Resmon after end of animation
afterend

:star2: | Configurable

Config = {}
Config.Language = 'en'                      -- 'en'/'cs'/'sk'/'custom - IF YOU CAN USE OTHER THAN THESE config language'
Config.TestMode = false                     --FOR TEST ONLY, OR DISABLE ALLOWING BY DRAGGED PERSON IF HE ALIVE
Config.EnableReloadDeath = false            --if you use reload death or any animation if you are dead, you need our modify into this script, please contact us, it is for free
Config.Command = 'drag'                     -- command name

Config.DistanceFromPed = 2.0                -- distance on detect target

Config.Text2DPosX = 0.815
Config.Text2DPosY = 1.41
Config.Text = {font = 0, scale = 0.335, r = 255, g = 255, b = 255, a = 255}

Config.Text_custom = {                      --IF YOU CAN USE OTHER THAN THESE config language
    cancel = '\nHold ~r~[H]~w~ to cancel dragging' , 
    accept_deny = '~g~[E]~w~ Accept dragging\n~r~[H]~w~ Reject dragging'
}
Config.Notifications_custom = {             --IF YOU CAN USE OTHER THAN THESE config language
    accept = 'Accepted', 
    reject = 'Rejected', 
    noplayernearby = 'No player nearby', 
    nostrength = 'You don´t have enough strength to drag another person'
}

-- Down you can implement your own notification exports
-- Client side notifications
function ClientNotification(type, text)
    if type == 'error' then
        exports['mythic_notify']:SendAlert('error', text)
    elseif type == 'success' then
        exports['mythic_notify']:SendAlert('success', text)
    end
end

-- FOR DEVELOPERS - This function you can use as you wish Here is example of command and example of event. For examle in player menu etc.
RegisterCommand(Config.Command, function()
    DragDeadBody()                          
end)

--RegisterNetEvent('svejdarpa_dragbody:startdragging')
--AddEventHandler('svejdarpa_dragbody:startdragging', function()
    --DragDeadBody()
--end)

:star2: | Steps For Use:

  1. You drag the folder into your server
  2. Write name of this resource into server.cfg
  3. You can config command name, language and type of notifications as you wish
  4. restart the server
  5. in game you use your command if you stand close to dead or alive person

if you have any problem with script, put this line into ambulancejob into any while true do thread, or contact our support: SetPlayerHealthRechargeMultiplier(PlayerId(), 0.0)

:computer: | Video: DragBodyAnimation
:moneybag: | Price: 4.95€ + tax
:hammer_and_wrench: | Created by: Svejdarpa#4136
Buy: https://svejdascripts.tebex.io/package/4545800

3 Likes

Need some fix but is pretty equal to that [RELEASE] xenos_DragPeople

4 Likes

Looks clear and well made, this was created by Xenos free but for this price with this features it’s ok. Good work and thanks for share

What do you mean by that?

that for 5 euros a script slightly modified by mine does not make sense to buy it

2 Likes

Do you mean to indicate that he took your script and modified it?

I don’t know who are you, and I’ve never heard of you, one day I thought of writing this script and so I wrote it alone

im not saying that, i’m just saying that the final product is about the same

2 Likes

ok sorry, my mistake, but good yourself promo :point_left:

With this script is possible also stop the movement? For example if i dont press WASD animation will be in idle? If yes i will buy it :slight_smile:

If you press S if you drag body, you can move with target, and again if you press S you stop, but still hold the target and again you move etc…Want you a video with this for better specification?

1 Like

What do you say to that?

I don’t understand the question

No don’t worry about video, it’s ok like this thanks, just write in description for future customers :blush:

That what do you say to the script?

When I’m at home I buy it and I test it and I let you know

Ok, I’m excited

Nice script!

2 Likes

Would be nice to place a dead body in a vehicle

good idea, we try make it in next update

1 Like