With this script, you'll be able to attach an entity to any other entity !
Nabla.LogLevel = Nabla.LogLevels.WARN -- Log levels are ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF (default is WARN)
Config = {
-- Please check our FAQ if you have any question : https://fivem.nabla.sh/faq
-- List of players who have access to the rope creation, set WhiteListEnabled = true/false to enable/disable the whitelist
-- Players with secondary = true will be able to spawn the normal ropes and the "crime" ropes
WhiteListEnabled = false,
WhiteList = {
['ip:192.168.168.35'] = {secondary = true},
['steam:12345'] = {secondary = false},
['police'] = {secondary = false},
['police:3'] = {secondary = false}, -- Job and grade
['nabla.winch'] = {secondary = true}, -- To use with ACE, add this to your server.cfg : add_ace identifier.YOURIDENTIFIER nabla.winch allow
['nabla.winch_sec'] = {secondary = false},
},
-- Keybinds, you can choose from here : https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/
DefaultControls = function()
RegisterKeyMapping('+winch_start', 'Winch - Menu', 'KEYBOARD', 'E') -- Start selection (to create rope)
RegisterKeyMapping('+winch_secon', 'Winch - Secondary', 'KEYBOARD', 'LMENU') -- Secondary selection (see Ropes.RopeTypeSec)
RegisterKeyMapping('+winch_select', 'Winch - Select', 'MOUSE_BUTTON', 'MOUSE_LEFT') -- Validate selection
RegisterKeyMapping('+winch_wind', 'Winch - Wind', 'KEYBOARD', 'PAGEUP') -- Retract rope
RegisterKeyMapping('+winch_unwind', 'Winch - UnWind', 'KEYBOARD', 'PAGEDOWN') -- Extend rope
RegisterKeyMapping('+winch_break', 'Winch - Break', 'KEYBOARD', 'B') -- Cut rope
RegisterKeyMapping('+winch_prev', 'Winch - Previous', 'KEYBOARD', 'LEFT') -- Select previous rope
RegisterKeyMapping('+winch_next', 'Winch - Next', 'KEYBOARD', 'RIGHT') -- Select next rope
RegisterKeyMapping('+winch_all', 'Winch - All', 'KEYBOARD', 'LSHIFT') -- Select all ropes
end,
-- Maximum number of ropes per user
MaxRopes = 4,
-- Configure ropes
Ropes = {
MinLength = 0.5,
MaxLength = 15.0,
RopeType = 5, -- Primary rope (Normal)
RopeTypeSec = 2, -- Secondary rope (Crime)
WindingSpeed = 0.5,
},
-- Can you add a rope on :
Types = {
Self = false, -- Yourself ?
Plys = true, -- Other players ?
Peds = true, -- Pedestrians (non player) ?
Vehs = true, -- Vehicles ?
Objs = true, -- Objects ?
None = true, -- If no entity is impacted, create a fixed anchor point
},
-- If an anchor has to be created, what should it look like ?
Hook = {
Model = GetHashKey("prop_v_hook_s"),
Offset = vector3(0,0,-0.45),
Translate = 0.0,
Visible = true,
Collision = false,
},
-- List of model you can't add a rope on (type doesn't matter)
BlackList = {
[GetHashKey("POLICE")] = true
},
-- Cursor appeareance (https://docs.fivem.net/natives/?_0x8DB8CFFD58B62552)
Cursor = {
Target = 8,
NoTarget = 1
},
Strings = {
["rope1"] = "~g~ 1~w~/2 point saved",
["rope_ok"] = "~g~ 2~w~/2 point saved\n Winch ~g~created",
["too_long"] = "The two entities are ~r~too far~w~ apart",
["no_obj"] = "~r~No object~w~ to attach",
["max_rope"] = "You reach your ~r~rope limit~w~",
['Rope_Menu1'] = '~INPUT_41393B98~ Rope (%d/%d) ~INPUT_6E0EFF32~\n',
['Rope_Menu2'] = '~INPUT_F90E6096~ Length ~g~%.1f~w~m ~INPUT_A0C60889~\n',
['Rope_Menu3'] = '~INPUT_FD4AFE6D~ Cut rope\n~INPUT_4F7D4317~ Control all',
},
}
function DisplayHelpText(lineOne, lineTwo, lineThree)
BeginTextCommandDisplayHelp("THREESTRINGS")
AddTextComponentSubstringPlayerName(lineOne)
AddTextComponentSubstringPlayerName(lineTwo or "")
AddTextComponentSubstringPlayerName(lineThree or "")
EndTextCommandDisplayHelp(0, 0, 0, -1)
end
local prev = nil
function ShowNotification(message)
if prev ~= nil then
RemoveNotification(prev)
end
AddTextEntry(GetCurrentResourceName().."Notif", Config.Strings[message])
BeginTextCommandThefeedPost(GetCurrentResourceName().."Notif")
prev = EndTextCommandThefeedPostTicker(false, false)
end
Keybind / Command | Action |
---|---|
E | Hold to activate the rope point selection press |
Left Click | Select a point for the rope |
Page Up | Wind current rope |
Page Down | Unwind current rope |
B | Cut current rope |
← / → | Select rope |
Letf Shift | Select all ropes |
27/3/2023
Like: Works perfectly for what I am trying to do. If you don't mind, I would love to maybe work with you guys on some wrecker rotators & cranes I have planned. I think this script or something similar would be really cool for the towing companies that never get enough love.
3/8/2022
Like : Both scripts work great and the support is spot on.
Dislike : Price was a bit more than I wanted to spend but very much worth it.
2/8/2022
Like : Amazing script, really advanced, and good config.
Dislike : Price was a little expensive for me, 100% worth it though.
6/7/2022
Like : Amazing script, really advanced, and good config.
Dislike : Price was a little expensive for me, 100% worth it though.
23/5/2022
Like : Great support team & Product
Dislike : N/A
14/4/2022
Like : It makes a lot of fun for my server, also the owner of the script help me a lot on solving my problem, very professional!
Dislike : Of course not!
3/4/2022
Like : There are so many things you can do with the script, it is the best winch script out there. The support is quick and to the point.
Dislike : There's nothing to dislike.
2/4/2022
Like : The winch script is the best rope/winch script available on fivem.
22/3/2022
Like : First and foremost most amazing customer service/dev team, I initially asked if something could be tweaked or added before I purchased an it was updated within a couple hrs and pushed to the test server. The practicality of it is pretty unlimited and executed flawlessly. Simple and very effective to use.
Dislike : Can’t really say anything bad about it, only thing a bit of inconvenience is if it’s a very steep angle it’s a bit rough to winch/recover cars up hills or ditches… but Its still possible.