myTrunk - Advanced vehicle trunk


Hey guys,

with myTrunk I want to present an advanced trunk solution, which was requested multiple times by our community.

Features:

  • Simple configuration options for maximal trunk weight, item and weapon amount per vehicle category

    → You can store items and weapons in the trunk

  • Configurable item weights for every single item.

  • Support for the ESX Weight System and the old ESX Item Limits system (can be configured in the Config)

  • Optional event to open the vehicle trunk f.e. from a vehicle menu script:

    TriggerEvent('myTrunk:openTrunk', currentCar, vehiclePlate)
  • Beautiful trunk menu with NativeUI with refresh function

  • The trunk is saved based on the number plate in the database. So you can also access the trunk of police, ambulance or job vehicles in general. Be sure every number plate is unique on your server!

  • English and German Translations are included, as always :wink:

Update 19.09.2021:

  • You can now store money and black money in the trunk

image

Showcase:

Trunk menu:
image

Simple Configuration:
Set up different maximum weights, and optional item and weapon amounts for every vehicle category in the Config:

Config.VehicleLimit = {
    [0] = {item = 4, weapon = 1, maxWeight = 4000}, --Compact
    [1] = {item = 6, weapon = 1, maxWeight = 4000}, --Sedan
    [2] = {item = 7, weapon = 2, maxWeight = 4000}, --SUV
    [3] = {item = 5, weapon = 1, maxWeight = 4000}, --Coupes
    [4] = {item = 7, weapon = 1, maxWeight = 4000}, --Muscle
    [5] = {item = 6, weapon = 1, maxWeight = 4000}, --Sports Classics
    [6] = {item = 3, weapon = 1, maxWeight = 4000}, --Sports
    [7] = {item = 3, weapon = 1, maxWeight = 4000}, --Super
    [8] = {item = 1, weapon = 0, maxWeight = 4000}, --Motorcycles
    [9] = {item = 9, weapon = 1, maxWeight = 4000}, --Off-road
    [10] = {item = 11, weapon = 1, maxWeight = 4000}, --Industrial
    [11] = {item = 1, weapon = 1, maxWeight = 4000}, --Utility
    [12] = {item = 10, weapon = 2, maxWeight = 8000}, --Vans
    [13] = {item = 1, weapon = 0, maxWeight = 4000}, --Cycles
    [14] = {item = 4, weapon = 1, maxWeight = 4000}, --Boats
    [15] = {item = 6, weapon = 1, maxWeight = 4000}, --Helicopters
    [16] = {item = 10, weapon = 3, maxWeight = 4000}, --Planes
    [17] = {item = 6, weapon = 1, maxWeight = 4000}, --Service
    [18] = {item = 6, weapon = 3, maxWeight = 4000}, --Emergency
    [19] = {item = 0, weapon = 0, maxWeight = 4000}, --Military
    [20] = {item = 18, weapon = 5, maxWeight = 4000}, --Commercial
    [21] = {item = 0, weapon = 0, maxWeight = 4000}, --Trains
}

Included languages: english, german
As always, all strings can be set up simply in the Config.

Dependencies:

  • ESX
  • NativeUI

Price: 4.99€ + tax
Get it at https://luis-scripts.tebex.io/package/4683967

Feel free to check out my other scripts

myDJ
myMinijobs
myMailing
myJobsystem
myCrafting
myImpound
myDrugs
myClothesshop
myProperties
myMapbuilder
myShops
myMultichar
myBills
EnhancedBarbershop
myATMRobbery

5 Likes

So nice!

1 Like

Very Nice, But That will be nice if we can deposit some black money (if you add it, i will bought it :slight_smile: )

dupping secure?

If you add money I’ll happily ditch my current system for this one, love your work.

1 Like

@Zerodaggerz @Brooksiito

Here you go!
New Update with the ability to store money and optional also black money :wink:
image

1 Like

Oh hell yeah, this is an insta-buy!

myTrunk - Update - 02.10.2021

  • Added a Config option to change the maximum distance to be able to access the trunk

myTrunk - Update - 27.11.2021

  • Changed the ressource.lua to fxmanifest.lua
  • Added an option to set up individual item /weapon limits and weights for every vehicle (not only vehicle classes)
    All files are modified (client, server and config.lua)

how is it working ? how can i put the data from the special vehicle in it? for modcars or something

Every modded car also has got a category, which would set a limit.
In addition you can also add the model names of your modvehicles to the Config.

Best regards,
Luis

1 Like

Very good trunk script but would there ever be a version using esx menu default instead of nativeUI? Also maybe a config for every car addon etc?
For example: [22] = {item = 4, weapon = 1, maxWeight = 4000}, --infinitig35
In this way we can customize every vehicle weight
Does this work with Oxmysql and esx legacy?

Hey,

we added an option to configure the weights for every modded vehicle, as you suggested it, a couple of months ago.
Also it works of course with legacy and oxsql.

1 Like

hello,
where can i add trailers

[‘DOCKTRAILER’] = {item = 3, weapon = 20, maxWeight = 10000}, --Commercial
[‘TVTRAILER’] = {item = 3, weapon = 20, maxWeight = 10000}, --Commercial
[‘TANKER’] = {item = 2, weapon = 0, maxWeight = 10000}, --Commercial
[‘TANKER2’] = {item = 2, weapon = 0, maxWeight = 10000}, --Commercial
[‘trailerlarge’] = {item = 4, weapon = 1, maxWeight = 4000}, --Commercial
[‘TRAILERS’] = {item = 4, weapon = 1, maxWeight = 10000}, --Commercial
[‘TRAILERS2’] = {item = 4, weapon = 1, maxWeight = 10000}, --Commercial
[‘TRAILERS3’] = {item = 4, weapon = 1, maxWeight = 10000}, --Commercial
[‘TRAILERS4’] = {item = 4, weapon = 1, maxWeight = 10000}, --Commercial

unfortunately it does not work where is the error?

can two users access the trunk at the same time ? If yes what happens if two users are taking out items at the same time/tick?

Both users should get what they took when there is enough in the trunk