no luck for this
i modify the script so it has gang menu i can make a pull on github with your permisions
it would not be better to put the same purchase and garage system as âesx_policejobâ
Using esx_drp_garage, saving vehicle in garage is working. but when I try to spawn vehicle, the menu opens and when I press Enter, no vehicles and menu closes. Any fixes?
how an i set up the job bc i type /setclub 1 lmc 1 amd it doesnt work
Make sure the script is running and the SQL file has been imported.
It works as is. Make sure you have the correct garage script set in your config.lua. Note down any errors you see in F8 or in the server console.
thank
can this get configured with jb_eden_garage?
That should be the same as eden/drb garage, so yes
No errors in F8 or server console.
Donât work on the last ESX version weight system.
When starting the server I run into this problem. I canât imagine how to solve it. I have es_extended updated.
It looks like itâs having an issue loading up that particular variable from the Config.lua. Is it configured properly and in the right spot folder wise?
How do you go about adding another club? for example im looking into adding the vagos and other gangs to all run off of the same script
Copy the LMC section of the config.lua and create a 2nd one below it. Copy/paste the .sql file LMC parts and rename to the new club you make. Restart the server.
I checked everything and there was missing a comma. hahaha. now the problem is that the LMC ownerâs chest does not show the menu and the other clubs donât show the (ownerâs) blip. What could be happening? follow the code below:
Config.Clubs = {
lmc = { -- Must match Database name
Garage = { -- Vehicle Garage
x = 0.0, y = 0.0, z = 73.35, h = 0.0
},
Perms = {
StorageRankMin = 1,
StorageRankMinPriv = 3
},
Zones = {
ChangingRoom = {
Pos = {x = 981.05, y = -97.98, z = 73.85},
Size = {x = 0.7, y = 0.7, z = 0.5},
Color = {r = 20, g = 250, b = 20},
Marker= 25,
Blip = false,
Name = _U('lockertitle'),
Type = "changingroom",
Hint = _U('changing_room'),
},
Storage1 = {
Pos = {x = 972.25, y = -98.99, z = 73.85},
Size = {x = 0.7, y = 0.7, z = 0.5},
Color = {r = 150, g = 5, b = 5},
Marker= 25,
Blip = false,
Name = _U('storage'),
Type = "storagepub", -- Public storage, available to all members
Hint = _U('storage_info'),
},
Storage2 = {
Pos = {x = 976.58, y = -103.58, z = 73.85},
Size = {x = 0.7, y = 0.7, z = 0.5},
Color = {r = 150, g = 5, b = 5},
Marker= 25,
Blip = false,
Name = _U('storage'),
Type = "storagepriv", -- Private Storage, requires StorageRankMin
Hint = _U('storage_info'),
},
Owner = { -- Owner menu location
Pos = {x = 986.60, y = -92.51, z = 73.85},
Size = {x = 0.7, y = 0.7, z = 0.5},
Color = {r = 113, g = 204, b = 81},
Marker= 25,
Blip = false,
Name = _U('lmcmenu'),
Type = "owner",
Hint = _U('lmcmenu_info'),
},
},
},
ballas = { -- Must match Database name
Garage = { -- Vehicle Garage
x = 0.0, y = 0.0, z = 73.35, h = 0.0
},
Perms = {
StorageRankMin = 1,
StorageRankMinPriv = 3
},
Zones = {
ChangingRoom = {
Pos = {x = 115.27, y = -1968.25, z = 20.40},
Size = {x = 0.7, y = 0.7, z = 0.5},
Color = {r = 20, g = 250, b = 20},
Marker= 25,
Blip = false,
Name = _U('lockertitle'),
Type = "changingroom",
Hint = _U('changing_room'),
},
Storage1 = {
Pos = {x = 105.87, y = -1978.76, z = 20.40},
Size = {x = 0.7, y = 0.7, z = 0.5},
Color = {r = 150, g = 5, b = 5},
Marker= 25,
Blip = false,
Name = _U('storage'),
Type = "storagepub", -- Public storage, available to all members
Hint = _U('storage_info'),
},
Storage2 = {
Pos = {x = 117.13, y = -1963.83, z = 20.40},
Size = {x = 0.7, y = 0.7, z = 0.5},
Color = {r = 150, g = 5, b = 5},
Marker= 25,
Blip = false,
Name = _U('storage'),
Type = "storagepriv", -- Private Storage, requires StorageRankMin
Hint = _U('storage_info'),
},
Owner = { -- Owner menu location
Pos = {x = 118.89, y = -1966.22, z = 20.40},
Size = {x = 0.7, y = 0.7, z = 0.5},
Color = {r = 113, g = 204, b = 81},
Marker= 25,
Blip = false,
Name = _U('ballasmenu'),
Type = "owner",
Hint = _U('ballasmenu_info'),
},
},
},
vagos = { -- Must match Database name
Garage = { -- Vehicle Garage
x = 0.0, y = 0.0, z = 73.35, h = 0.0
},
Perms = {
StorageRankMin = 1,
StorageRankMinPriv = 3
},
Zones = {
ChangingRoom = {
Pos = {x = 358.51, y = -2033.07, z = 22.20},
Size = {x = 0.7, y = 0.7, z = 0.5},
Color = {r = 20, g = 250, b = 20},
Marker= 25,
Blip = false,
Name = _U('lockertitle'),
Type = "changingroom",
Hint = _U('changing_room'),
},
Storage1 = {
Pos = {x = 343.41, y = -2020.79, z = 22.20},
Size = {x = 0.7, y = 0.7, z = 0.5},
Color = {r = 150, g = 5, b = 5},
Marker= 25,
Blip = false,
Name = _U('storage'),
Type = "storagepub", -- Public storage, available to all members
Hint = _U('storage_info'),
},
Storage2 = {
Pos = {x = 343.41, y = -2020.79, z = 22.20},
Size = {x = 0.7, y = 0.7, z = 0.5},
Color = {r = 150, g = 5, b = 5},
Marker= 25,
Blip = false,
Name = _U('storage'),
Type = "storagepriv", -- Private Storage, requires StorageRankMin
Hint = _U('storage_info'),
},
Owner = { -- Owner menu location
Pos = {x = 344.78, y = -2022.25, z = 21.39},
Size = {x = 0.7, y = 0.7, z = 0.5},
Color = {r = 113, g = 204, b = 81},
Marker= 25,
Blip = false,
Name = _U('vagosmenu'),
Type = "owner",
Hint = _U('vagosmenu_info'),
},
},
},
groove = { -- Must match Database name
Garage = { -- Vehicle Garage
x = 0.0, y = 0.0, z = 73.35, h = 0.0
},
Perms = {
StorageRankMin = 1,
StorageRankMinPriv = 3
},
Zones = {
ChangingRoom = {
Pos = {x = -141.52, y = -1608.89, z = 34.10},
Size = {x = 0.7, y = 0.7, z = 0.5},
Color = {r = 20, g = 250, b = 20},
Marker= 25,
Blip = false,
Name = _U('lockertitle'),
Type = "changingroom",
Hint = _U('changing_room'),
},
Storage1 = {
Pos = {x = -137.63, y = -1609.79, z = 34.10},
Size = {x = 0.7, y = 0.7, z = 0.5},
Color = {r = 150, g = 5, b = 5},
Marker= 25,
Blip = false,
Name = _U('storage'),
Type = "storagepub", -- Public storage, available to all members
Hint = _U('storage_info'),
},
Storage2 = {
Pos = {x = -155.48, y = -1604.10, z = 34.10},
Size = {x = 0.7, y = 0.7, z = 0.5},
Color = {r = 150, g = 5, b = 5},
Marker= 25,
Blip = false,
Name = _U('storage'),
Type = "storagepriv", -- Private Storage, requires StorageRankMin
Hint = _U('storage_info'),
},
Owner = { -- Owner menu location
Pos = {x = -157.72, y = -1603.25, z = 34.10},
Size = {x = 0.7, y = 0.7, z = 0.5},
Color = {r = 113, g = 204, b = 81},
Marker= 25,
Blip = false,
Name = _U('groovemenu'),
Type = "owner",
Hint = _U('groovemenu_info'),
},
},
},
}
As long as the job name (not the label) is âownerâ and the coordinates are above the ground it should show up. Make sure to /setclub as well.
I like to always keep things up to date. So my saga with this incredible resource is not over yet. I use the updated es_extended and this has caused all the problems I mentioned so far. A lot has already been resolved, but the items have not been removed yet. So I ask for help from my forum colleagues. Follows the conversion of the server.lua file for the weight system I am trying to do. But I still canât get the items out yet. Just sql error showing up at the prompt. Does anyone know what Iâm doing wrong?
RegisterServerEvent('sody_clubs:getStockItem')
AddEventHandler('sody_clubs:getStockItem', function(type, itemName, count, clubname)
local _source = source
local xPlayer = nil
while xPlayer == nil do
xPlayer = ESX.GetPlayerFromId(_source)
Wait(10)
end
local clubfullname = "club_" .. clubname
if type == 'item_standard' then
TriggerEvent('esx_addoninventory:getSharedInventory', clubfullname, function(inventory)
local inventoryItem = inventory.getItem(item)
if count > 0 and inventoryItem.count >= count then
if xPlayer.canCarryItem(item, count) then
inventory.removeItem(item, count)
xPlayer.addInventoryItem(item, count)
xPlayer.showNotification(_U('have_withdrawn', count, inventoryItem.label))
else
xPlayer.showNotification(_U('player_cannot_hold'))
end
else
xPlayer.showNotification(_U('invalid_quantity'))
end
end)
I finally got it. The resource is now working perfectly with the current es_extended. Just replace the file âserver.luaâ with the one Iâm posting here.
sody_clubs_server_lua.rar (3.8 KB)