![[H@mer] Garage (GTA:O Style) main image](https://forum-cfx-re.akamaized.net/optimized/4X/a/1/f/a1fb3e3b73c597644c408dba9557672a215e6230_2_690x318.jpeg)
![[H@mer] Garage (GTA:O Style) thumbnail 1](https://forum-cfx-re.akamaized.net/optimized/4X/a/1/f/a1fb3e3b73c597644c408dba9557672a215e6230_2_690x318.jpeg)
![[H@mer] Garage (GTA:O Style) thumbnail 2](https://img.youtube.com/vi/VPxUMEBQ8wk/hqdefault.jpg)
![[H@mer] Garage (GTA:O Style) thumbnail 3](https://forum-cfx-re.akamaized.net/optimized/5X/1/c/9/6/1c96b54b29e6f2e14f39f55e961c62707f5e8dcb_2_244x500.png)
![[H@mer] Garage (GTA:O Style) thumbnail 4](https://forum-cfx-re.akamaized.net/optimized/5X/a/a/a/4/aaa4dbef8581a47f2b3cd8b9db656bd6a7bbdf75_2_221x500.png)
Price
UnknownA script by HamerTH
Price
UnknownConfig
QBCore example
Config.LoadGarage = function(source) -- When player no vehicle press E into garage.
local mysql = MySQL.Sync.fetchAll('SELECT vehicle, mods, plate FROM `player_vehicles` WHERE steam= @steam',
{
['@steam'] = GetIdentifier(source),
})
local VehData = {}
for k,v in pairs(mysql) do
table.insert(VehData, { -- This is data using in clinet, just change MySQL query and push data on this.
model = v.vehicle, -- string or number, Example is Bmx ("bmx" or 1131912276)
plate = v.plate, -- string of vehicle plate, Example ("AAA 116")
mod = Config.GetVehicleMod(v.mods), -- Set vehicle mod data. (readme props.lua)
})
end
return VehData
end
ESX eample.
Config.LoadGarage = function(source) -- When player no vehicle press E into garage.
local mysql = MySQL.Sync.fetchAll('SELECT vehicle FROM `owned_vehicles` WHERE identifier = @identifier',
{
['@identifier'] = GetIdentifier(source),
})
local VehData = {}
for k,v in pairs(mysql) do
local vehicle = json.decode(v.vehicle)
table.insert(VehData, { -- This is data using in clinet, just change MySQL query and push data on this.
model = vehicle.model, -- string or number, Example is Bmx ("bmx" or 1131912276)
plate = vehicle.plate, -- string of vehicle plate, Example ("AAA 116")
mod = Config.GetVehicleMod(vehicle), -- Set vehicle mod data. (readme props.lua)
})
end
return VehData
end
Info
Code is accessible | No |
Subscription-based | No |
Lines (approximately) | 1000 |
Requirements | oxmysql or fivem-mysql-async |
Support | Yes |
No approved reviews found for this script yet.