Rytrak – Grab
Easily drag your players across the map with this new resource! With this complete configuration this script will adapt to the needs of your server! Features Fully customizable , with this complete configuration this script will adapt to the needs of your server! Compatible with your han
Video Preview
Click to load video from YouTube. By watching, you agree to their privacy policy.
Video
https://www.youtube.com/watch?v=oo4fWhaEPHI
Config file:
Config = {
Language = 'en', -- Language library used for the script, see the last lines to modify the text of the language. (Config.Languages)
CommandEnabled = true, -- Activate or not the system to take it via the command.
GrabCommand = 'grab', -- Command to take the person by the arm (modifiable from cl_utils.lua)
PutCarCommand = 'putcar', -- Command to put the person into the vehicle. (modifiable from cl_utils.lua)
ExitCarCommand = 'exitcar', -- Command to get the player out of a vehicle. (modifiable from cl_utils.lua)
ESX = { -- ESX compatibility (you can modify this function on cl_utils.lua)
enabled = false, -- Activate or not the ESX system
jobs = { -- Job for which the grab ped can be used
'police',
'fbi',
},
exceptionJobs = false -- Do not take people with the above jobs (Config.ESX.jobs)
},
QB = { -- QB compatibility (you can modify this function on cl_utils.lua)
enabled = false, -- Activate or not the QB system
jobs = { -- Job for which the grab ped can be used
'police',
'fbi',
}
},
DropPlayer = true, -- Drop player via a key (GrabAndDropKey) when CommandEnabled = true
DisableSprint = true, -- Disable the sprint (recommended: leave it true)
CollisionRange = 0.5, -- Collision distance (0.0 to disable the dragged player's collision)
AttachPosition = vector3(0.20, 0.45, 0.0), -- Positioning of the player facing the police officer
Animations = {
policeAnimation = {
enabled = true, -- Activate or not the animation of the policeman when he takes a person by the arm.
animDict = 'amb@world_human_drinking@coffee@male@base',
anim = 'base'
},
citizenAnimation = {
enabled = false, -- Activate or not the animation of the citizen when he is taken by the arm.
animDict = 'amb@world_human_drinking@coffee@male@base',
anim = 'base'
}
}
}
-- https://docs.fivem.net/docs/game-references/controls/
Config.Keys = {
GrabAndDropKey = 57, -- If CommandEnabled is equal to false you must put a key to take the person.
GrabAndDropKeyString = '~INPUT_DROP_AMMO~', -- Name of the button.
TaskEnterKey = 206, -- Button to put the person inside the vehicle
TaskEnterKeyString = '~INPUT_FRONTEND_RB~' -- Name of the button to put the person inside the vehicle
}
-- Libraries of languages.
Config.Languages = {
['en'] = {
['taskenter'] = 'Put the person in the vehicle '..Config.Keys.TaskEnterKeyString,
['exitped'] = 'Taking the person out the vehicle '..Config.Keys.TaskEnterKeyString,
['releaseperson'] = 'Release the person press '..Config.Keys.GrabAndDropKeyString
},
['fr'] = {
['taskenter'] = 'Faire monter la personne '..Config.Keys.TaskEnterKeyString,
['exitped'] = 'Faire descendre la personne '..Config.Keys.TaskEnterKeyString,
['releaseperson'] = 'Lacher la personne '..Config.Keys.GrabAndDropKeyString
}
}




