1
0
Fork 0
forked from Simnation/Main
This commit is contained in:
Nordi98 2025-07-09 15:19:44 +02:00
parent c8ce065d61
commit d7e2f9da39
47 changed files with 680 additions and 2010 deletions

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,9 @@
RegisterKeyMapping("+trailerConnect", "Connect any trailer", "keyboard", "j")
-- Use this function for job locking. If the job is correct, return true.
-- Please refer to your framework's job system for how to implement, I do not support
-- job checking integration. -Theebu
function allowed()
return true
end

View file

@ -0,0 +1,73 @@
Config = {}
Config.HitchDist = 3.5 -- Distance to check between hitches Default: 1.0
Config.Debug = false
--ONLY ENABLE ONE SYSTEM BELOW. BY DEFAULT BOTH ARE FALSE, WHICH ALLOWS ANY TOWING CAPABLE VEHICLE TO TOW ANY TRAILER
--Enable / Disable blacklisting if you still want to prevent certain trailers from being used but allow the rest
-- For example, stop vehicles from being able to freely connect to semi trailers
Config.UseBlacklist = false -- If FALSE (Default) the below section does NOT need filled out
Config.Blacklist = {
'trailers',
'trailers2',
'trailers3',
'tvtrailer',
'trailers4',
'docktrailer',
'tr2',
'tr3',
'tr4',
'tanker',
'tanker2',
'armytanker',
'trflat',
'trailerlogs',
'trailerlarge'
}
----
--Enable / Disable whitelisting if you still want full control what trucks can tow what trailers
Config.UseWhitelist = false -- If FALSE (Default) the below sections do NOT need filled out
Config.BallHitchTrucks = {
'sadler'
}
Config.BallHitchTrailers = {
'trailersmall'
}
Config.GooseHitchTrucks = {
}
Config.GooseHitchTrailers = {
}
Config.SaddleHitchTrucks = {
'packer',
'phantom',
'phantom2',
'phantom3',
'hauler',
'hauler2',
'barracks2'
}
Config.SaddleHitchTrailers = {
'trailers',
'trailers2',
'trailers3',
'tvtrailer',
'trailers4',
'docktrailer',
'tr2',
'tr3',
'tr4',
'tanker',
'tanker2',
'armytanker',
'trflat',
'trailerlogs',
'trailerlarge'
}

View file

@ -0,0 +1,23 @@
fx_version 'adamant'
game 'gta5'
description 'Connect Trailer Script'
author 'theebu'
lua54 'yes'
version '0.1.4'
client_scripts {
'client/client.lua',
'client/utils.lua'
}
server_scripts {
'server/server.lua'
}
shared_scripts {
'config.lua',
}
escrow_ignore {
'config.lua',
'client/utils.lua'
}
dependency '/assetpacks'

Binary file not shown.