first commit

This commit is contained in:
2026-03-29 21:41:17 +03:00
commit f1a0200a88
32514 changed files with 2129132 additions and 0 deletions
@@ -0,0 +1,119 @@
Config = {}
-------------
-- SCRIPT VALUES
-------------
Config.debug = false -- Display helpfull information to setup a new truck
Config.maxLengthWinch = 15.0 -- Max length of the winch
Config.maxDistanceToAttachABike = 3.0 -- Distance from the attach location to auto attach a bike
Config.autoAttach = true -- Auto attach the vehicle when getting close to the attach location
Config.pushWithWinch = true -- Can push the car with winch
Config.keepPressedToMoveBed = false -- Need to keep the key pressed to move the bed
Config.winchSpeed = 1.0 -- Speed of the winch
Config.winchType = 4 -- Type of the winch
Config.keys = {
rollUp = "UP",
rollDown = "DOWN",
windWinch = "LEFT",
unwindWinch = "RIGHT",
detachVehicle = "BACK",
attachVehicle = "LMENU",
attachHook = "E",
takeHook = "E",
storeHook = "E",
dropHook = "E",
}
-------------
-- VEHICLE BONES
-------------
Config.validBonesToAttachHook = { --list of valid bones for the vehicles
"neon_f",
"neon_l",
"neon_r",
"neon_b",
"engine",
"bodyshell"
}
Config.validBonesToAttachVehicle = { --list of valid bones for the vehicles
"bodyshell"
}
-------------
-- VALID TRUCKS
-------------
Trucks = {}
Trucks[`flatbed3`] = {
winchBone = "misc_b", -- The bone where the winch is attached
winchOffset = vector3(0.3, 0.0, 0.3), -- <optional> The origin of the winch
attachVehBone = "misc_a", -- The bone where the vehicle is attached
attachOffset = vector4(0.0, 1.5, 0.0, 0.0), -- <optional> The origin of the attachment
minBedPosition = 0.025, -- <optional> The min bed rollings
maxBedPosition = 14.0, -- <optional> The max bed rollings
minWinchLength = 1.2 -- <optional> The min winch length when wind it (default 1.0)
}
Trucks[`slamtruck`] = {
winchBone = "bodyshell",
winchOffset = vector3(0., 0.6, 0.6),
attachVehBone = "bodyshell",
attachOffset = vector4(0.0, -1.0, 0.3, 10.0),
minWinchLength = 0.5
}
-------------
-- HUD Functions
-------------
Config.functions = {
popupMessage = function(message, color)
exports['qb-core']:Notify(message, 'primary', 5000)
end,
hideHelpMessage = function()
end,
drawButtons = function(buttons)
local inputLabels = {
["~INPUT_F4FE5F08~"] = "UP",
["~INPUT_6919A59E~"] = "DOWN",
["~INPUT_7065027D~"] = "LEFT",
["~INPUT_B4E465B4~"] = "RIGHT",
["~INPUT_CEFDC17F~"] = "BACK",
["~INPUT_553B3B18~"] = "ALT",
["~INPUT_CEFD9220~"] = "E",
["~INPUT_D9D0E1C0~"] = "Q",
["~INPUT_9BC27DF7~"] = "E",
["~INPUT_455EE653~"] = "E",
["~INPUT_9685B97F~"] = "E",
}
local text = ""
for _, button in ipairs(buttons) do
local keys = button[1]
local label = button[2]
if type(keys) == "table" then
local mapped = {}
for i, k in ipairs(keys) do
mapped[i] = inputLabels[k] or k:gsub("~INPUT_(.-)~", "%1")
end
text = text .. "[" .. table.concat(mapped, " + ") .. "] " .. label .. "~n~"
else
local k = inputLabels[keys] or keys:gsub("~INPUT_(.-)~", "%1")
text = text .. "[" .. k .. "] " .. label .. "~n~"
end
end
exports["17mov_Hud"]:ShowHelpNotificationWhile(text)
end,
vehicleAttached = function(truck, vehicle)
exports['qb-core']:Notify(__("vehicleAttached"), 'success', 5000)
end,
vehicleDetached = function(truck, vehicle)
exports['qb-core']:Notify(__("vehicleDetached"), 'error', 5000)
end,
vehicleHooked = function(truck, vehicle)
exports['qb-core']:Notify(__("vehicleHooked"), 'primary', 5000)
end,
}
@@ -0,0 +1,49 @@
author "kad Darem : https://jumpon-studios.com"
documentation "https://docs.jumpon-studios.com"
version "2.0.3"
package_id "6959481"
fx_version "cerulean"
game "gta5"
lua54 "yes"
escrow_ignore {
"config.lua",
"lang.lua",
"meta/flatbed/vehiclelayouts.meta",
"meta/flatbed/handling.meta",
"meta/flatbed/vehicles.meta",
"meta/flatbed/carcols.meta",
"meta/flatbed/carvariations.meta",
"stream/*"
}
shared_scripts {
"config.lua",
"lang.lua",
}
client_script {
"client/main.lua",
}
server_scripts {
"server/main.lua",
"server/versionChecker.lua"
}
data_file "VEHICLE_LAYOUTS_FILE" "meta/flatbed/vehiclelayouts.meta"
data_file "HANDLING_FILE" "meta/flatbed/handling.meta"
data_file "VEHICLE_METADATA_FILE" "meta/flatbed/vehicles.meta"
data_file "CARCOLS_FILE" "meta/flatbed/carcols.meta"
data_file "VEHICLE_VARIATION_FILE" "meta/flatbed/carvariations.meta"
files {
"meta/flatbed/vehiclelayouts.meta",
"meta/flatbed/handling.meta",
"meta/flatbed/vehicles.meta",
"meta/flatbed/carcols.meta",
"meta/flatbed/carvariations.meta",
}
dependency '/assetpacks'
@@ -0,0 +1,26 @@
-------------
-- USE THIS FILE TO TRANSLATE THE SCRIPT
-- LANG LOCATION : shared/lang.lua
-- Copy ONLY values you want edit, NOT ALL the Lang file
-------------
Lang = {}
Lang.attachHook = "Ataseaza carligul"
Lang.attachVehicle = "Ataseaza vehiculul"
Lang.detachVehicle = "Detaseaza vehiculul"
Lang.dropHook = "Lasa carligul"
Lang.hookAttached = "Carlig atasat"
Lang.moveBed = "Misca platforma"
Lang.removeWinchBefore = "Te rog scoate troliul mai intai"
Lang.rollBed = "Ruleaza platforma"
Lang.rollDown = "Coboara platforma"
Lang.rollUp = "Ridica platforma"
Lang.storeHook = "Depoziteaza carligul"
Lang.takeHook = "Ia carligul"
Lang.unwindWinch = "Desfasoara troliul"
Lang.vehicleAttached = "Vehicul atasat"
Lang.vehicleDetached = "Vehicul detasat"
Lang.vehicleNotAttached = "Niciun vehicul de atasat"
Lang.winchTooLong = "Troliul este prea lung"
Lang.windWinch = "Infasoara troliul"
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<CVehicleModelInfoVarGlobal>
<Kits>
<Item>
<kitName>0_default_modkit</kitName>
<id value="0" />
<kitType>MKT_SPECIAL</kitType>
<visibleMods />
<linkMods />
<statMods />
<slotNames />
<liveryNames>
<Item>FLATBED3_LV1</Item>
<Item>FLATBED3_LV2</Item>
<Item>FLATBED3_LV3</Item>
<Item>FLATBED3_LV4</Item>
<Item>FLATBED3_LV5</Item>
<Item>FLATBED3_LV6</Item>
</liveryNames>
</Item>
</Kits>
<Lights />
</CVehicleModelInfoVarGlobal>
@@ -0,0 +1,145 @@
<?xml version="1.0" encoding="UTF-8"?>
<CVehicleModelInfoVariation>
<variationData>
<Item>
<modelName>flatbed3</modelName>
<colors>
<Item>
<indices content="char_array">
112
112
159
156
</indices>
<liveries>
<Item value="true" />
<Item value="false" />
<Item value="false" />
<Item value="false" />
<Item value="false" />
<Item value="false" />
<Item value="false" />
<Item value="false" />
</liveries>
</Item>
<Item>
<indices content="char_array">
62
62
4
156
</indices>
<liveries>
<Item value="false" />
<Item value="true" />
<Item value="false" />
<Item value="false" />
<Item value="false" />
<Item value="false" />
<Item value="false" />
<Item value="false" />
</liveries>
</Item>
<Item>
<indices content="char_array">
18
18
160
156
</indices>
<liveries>
<Item value="false" />
<Item value="false" />
<Item value="true" />
<Item value="false" />
<Item value="false" />
<Item value="false" />
<Item value="false" />
<Item value="false" />
</liveries>
</Item>
<Item>
<indices content="char_array">
19
19
136
156
</indices>
<liveries>
<Item value="false" />
<Item value="false" />
<Item value="false" />
<Item value="true" />
<Item value="false" />
<Item value="false" />
<Item value="false" />
<Item value="false" />
</liveries>
</Item>
<Item>
<indices content="char_array">
27
27
36
156
</indices>
<liveries>
<Item value="false" />
<Item value="false" />
<Item value="false" />
<Item value="false" />
<Item value="true" />
<Item value="false" />
<Item value="false" />
<Item value="false" />
</liveries>
</Item>
<Item>
<indices content="char_array">
108
108
123
156
</indices>
<liveries>
<Item value="false" />
<Item value="false" />
<Item value="false" />
<Item value="false" />
<Item value="false" />
<Item value="true" />
<Item value="false" />
<Item value="false" />
</liveries>
</Item>
</colors>
<kits>
<item>0_default_modkit</item>
</kits>
<windowsWithExposedEdges />
<plateProbabilities>
<Probabilities>
<Item>
<Name>Standard White</Name>
<Value value="25" />
</Item>
<Item>
<Name>White Plate 2</Name>
<Value value="50" />
</Item>
<Item>
<Name>Blue Plate</Name>
<Value value="10" />
</Item>
<Item>
<Name>Yellow Plate</Name>
<Value value="15" />
</Item>
</Probabilities>
</plateProbabilities>
<lightSettings value="335" />
<sirenSettings value="9" />
</Item>
</variationData>
</CVehicleModelInfoVariation>
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<CHandlingDataMgr>
<HandlingData>
<!-- Add your car handling here -->
</HandlingData>
</CHandlingDataMgr>
@@ -0,0 +1,62 @@
<?xml version="1.0" encoding="UTF-8"?>
<CVehicleMetadataMgr>
<VehicleCoverBoundOffsetInfos />
<FirstPersonDriveByLookAroundData />
<VehicleExplosionInfos>
<Item type="CVehicleExplosionInfo">
<Name>EXPLOSION_INFO_DEFAULT</Name>
<ExplosionData />
<AdditionalPartVelocityMinAngle value="0.000000" />
<AdditionalPartVelocityMaxAngle value="0.000000" />
<AdditionalPartVelocityMinMagnitude value="0.000000" />
<AdditionalPartVelocityMaxMagnitude value="0.000000" />
<VehicleExplosionLODs>
<Item>
<Radius value="0.000000" />
<PartDeletionChance value="0.000000" />
</Item>
<Item>
<Radius value="10.000000" />
<PartDeletionChance value="0.400000" />
</Item>
<Item>
<Radius value="17.000000" />
<PartDeletionChance value="0.800000" />
</Item>
</VehicleExplosionLODs>
</Item>
<Item type="CVehicleExplosionInfo">
<Name>EXPLOSION_INFO_CAR</Name>
<ExplosionData>
<Item>
<ExplosionTag>CAR</ExplosionTag>
<PositionAtPetrolTank value="true" />
<PositionInBoundingBox value="false" />
<DelayTimeMs value="34" />
<Scale value="1.000000" />
<PositionOffset x="0.000000" y="0.000000" z="0.000000" />
</Item>
</ExplosionData>
<AdditionalPartVelocityMinAngle value="45.000000" />
<AdditionalPartVelocityMaxAngle value="60.000000" />
<AdditionalPartVelocityMinMagnitude value="5.000000" />
<AdditionalPartVelocityMaxMagnitude value="8.000000" />
<VehicleExplosionLODs>
<Item>
<Radius value="0.000000" />
<PartDeletionChance value="0.000000" />
</Item>
<Item>
<Radius value="15.000000" />
<PartDeletionChance value="0.400000" />
</Item>
<Item>
<Radius value="22.000000" />
<PartDeletionChance value="0.800000" />
</Item>
</VehicleExplosionLODs>
</Item>
</VehicleExplosionInfos>
</CVehicleMetadataMgr>
@@ -0,0 +1,127 @@
<?xml version="1.0" encoding="UTF-8"?>
<CVehicleModelInfo__InitDataList>
<residentTxd>vehshare</residentTxd>
<residentAnims />
<InitDatas>
<Item>
<modelName>flatbed3</modelName>
<txdName>flatbed3</txdName>
<handlingId>FLATBED</handlingId>
<gameName>FLATBED3</gameName>
<vehicleMakeName>MTL</vehicleMakeName>
<expressionDictName>null</expressionDictName>
<expressionName>null</expressionName>
<animConvRoofDictName>null</animConvRoofDictName>
<animConvRoofName>null</animConvRoofName>
<animConvRoofWindowsAffected />
<ptfxAssetName>null</ptfxAssetName>
<audioNameHash>FLATBED</audioNameHash>
<layout>LAYOUT_TRUCK</layout>
<coverBoundOffsets>FLATBED_COVER_OFFSET_INFO</coverBoundOffsets>
<explosionInfo>EXPLOSION_INFO_TRUCK</explosionInfo>
<scenarioLayout />
<cameraName>DEFAULT_FOLLOW_VEHICLE_CAMERA</cameraName>
<aimCameraName>MID_BOX_VEHICLE_AIM_CAMERA</aimCameraName>
<bonnetCameraName>VEHICLE_BONNET_CAMERA_MID</bonnetCameraName>
<povCameraName>DEFAULT_POV_CAMERA_LOOKAROUND_MID</povCameraName>
<FirstPersonDriveByIKOffset x="-0.055000" y="-0.050000" z="-0.020000" />
<FirstPersonDriveByUnarmedIKOffset x="0.000000" y="0.000000" z="0.000000" />
<FirstPersonProjectileDriveByIKOffset x="0.063000" y="-0.058000" z="0.000000" />
<FirstPersonProjectileDriveByPassengerIKOffset x="-0.055000" y="-0.083000" z="0.033000" />
<FirstPersonProjectileDriveByRearLeftIKOffset x="0.000000" y="0.000000" z="0.000000" />
<FirstPersonProjectileDriveByRearRightIKOffset x="0.000000" y="0.000000" z="0.000000" />
<FirstPersonDriveByLeftPassengerIKOffset x="0.000000" y="0.000000" z="0.000000" />
<FirstPersonDriveByRightPassengerIKOffset x="0.000000" y="0.000000" z="0.000000" />
<FirstPersonDriveByRightRearPassengerIKOffset x="0.000000" y="0.000000" z="0.000000" />
<FirstPersonDriveByLeftPassengerUnarmedIKOffset x="0.000000" y="0.000000" z="0.000000" />
<FirstPersonDriveByRightPassengerUnarmedIKOffset x="0.000000" y="0.000000" z="0.000000" />
<FirstPersonMobilePhoneOffset x="0.155000" y="0.370000" z="0.461000" />
<FirstPersonPassengerMobilePhoneOffset x="0.136000" y="0.223000" z="0.425000" />
<PovCameraOffset x="0.000000" y="-0.081000" z="0.615000" />
<PovCameraVerticalAdjustmentForRollCage value="0.000000" />
<PovPassengerCameraOffset x="0.000000" y="0.000000" z="0.040000" />
<PovRearPassengerCameraOffset x="0.000000" y="0.000000" z="0.040000" />
<vfxInfoName>VFXVEHICLEINFO_TRUCK_HIDDEN_EXHAUST</vfxInfoName>
<shouldUseCinematicViewMode value="true" />
<shouldCameraTransitionOnClimbUpDown value="false" />
<shouldCameraIgnoreExiting value="false" />
<AllowPretendOccupants value="true" />
<AllowJoyriding value="false" />
<AllowSundayDriving value="false" />
<AllowBodyColorMapping value="true" />
<wheelScale value="0.354000" />
<wheelScaleRear value="0.320000" />
<dirtLevelMin value="0.300000" />
<dirtLevelMax value="1.000000" />
<envEffScaleMin value="0.000000" />
<envEffScaleMax value="1.000000" />
<envEffScaleMin2 value="0.000000" />
<envEffScaleMax2 value="1.000000" />
<damageMapScale value="0.600000" />
<damageOffsetScale value="1.000000" />
<diffuseTint value="0x00FFFFFF" />
<steerWheelMult value="1.000000" />
<HDTextureDist value="5.000000" />
<lodDistances content="float_array">
20.000000
90.000000
130.000000
260.000000
750.000000
750.000000
</lodDistances>
<minSeatHeight value="1.213" />
<identicalModelSpawnDistance value="20" />
<maxNumOfSameColor value="10" />
<defaultBodyHealth value="1000.000000" />
<pretendOccupantsScale value="1.000000" />
<visibleSpawnDistScale value="1.000000" />
<trackerPathWidth value="2.000000" />
<weaponForceMult value="1.000000" />
<frequency value="10" />
<swankness>SWANKNESS_1</swankness>
<maxNum value="999" />
<flags>FLAG_BIG FLAG_CAN_HONK_WHEN_FLEEING FLAG_AVOID_TURNS FLAG_EXTRAS_REQUIRE FLAG_PEDS_CAN_STAND_ON_TOP FLAG_DONT_SPAWN_IN_CARGEN FLAG_USE_FAT_INTERIOR_LIGHT FLAG_IS_BULKY FLAG_BLOCK_FROM_ATTRACTOR_SCENARIO FLAG_CANNOT_TAKE_COVER_WHEN_STOOD_ON FLAG_HAS_LIVERY FLAG_EXTRAS_ONLY_BREAK_WHEN_DESTROYED</flags>
<type>VEHICLE_TYPE_CAR</type>
<plateType>VPT_FRONT_PLATES</plateType>
<dashboardType>VDT_TRUCK</dashboardType>
<vehicleClass>VC_INDUSTRIAL</vehicleClass>
<wheelType>VWT_SPORT</wheelType>
<trailers />
<additionalTrailers />
<drivers>
<Item>
<driverName>S_M_M_Trucker_01</driverName>
<npcName />
</Item>
</drivers>
<extraIncludes />
<doorsWithCollisionWhenClosed>
<Item>VEH_EXT_BONNET</Item>
</doorsWithCollisionWhenClosed>
<driveableDoors />
<bumpersNeedToCollideWithMap value="true" />
<needsRopeTexture value="false" />
<requiredExtras />
<rewards />
<cinematicPartCamera>
<Item>WHEEL_WIDE_REAR_RIGHT_CAMERA</Item>
<Item>WHEEL_WIDE_REAR_LEFT_CAMERA</Item>
</cinematicPartCamera>
<NmBraceOverrideSet>Truck</NmBraceOverrideSet>
<buoyancySphereOffset x="0.000000" y="0.000000" z="0.000000" />
<buoyancySphereSizeScale value="1.000000" />
<pOverrideRagdollThreshold type="NULL" />
<firstPersonDrivebyData>
<Item>TRUCK_PHANTOM_FRONT_LEFT</Item>
<Item>TRUCK_PACKER_FRONT_RIGHT</Item>
</firstPersonDrivebyData>
</Item>
</InitDatas>
<txdRelationships>
<Item>
<parent>vehshare_truck</parent>
<child>flatbed3</child>
</Item>
</txdRelationships>
</CVehicleModelInfo__InitDataList>