FAQ
Frequently Asked Questions
Could not find dependency t1ger_mechanicprops
for resource t1ger_mechanic
t1ger_mechanicprops
for resource t1ger_mechanic
The props asset is new and has been added to the Granted Assets in Cfx.re Portal of the account that originally purchased the mechanic script.
If you can’t find it:
You likely had the script transferred from someone else. Ask them to also transfer the props asset.
If the script was gifted via the webstore (we can check) and the props didn’t show up, open a ticket on our Discord — we can manually resend it.
If you don’t have access to the original purchasing account, we cannot help. The asset can only be resent to the account that made the original purchase.
We do not send or sell the props separately. Buying from resellers or third parties is not supported - nor our issue to take care of.
sv_enforceGameBuild
needs to be at least 3258
sv_enforceGameBuild
needs to be at least 3258Build 3258 is required to use a native that detects electric vehicles. If you prefer using a lower build:
Open
fxmanifest.lua
and lower or comment out thegameBuild
dependency.Manually configure your electric vehicles in
Config.ElectricVehicles
.
Failed to insert job
This is an error you are likely to see on es_extended
when creating shops/jobs in runtime. All you have to do is:
Open
createJob.lua
located insidees_extended/server/modules
. If you do not have acreateJob.lua
file or modules folder, then openfunctions.lua
insidees_extended/server
.Locate the function named:
ESX.CreateJob
.Replace the entire function with the following code:
--- Create Job at Runtime
--- @param name string
--- @param label string
--- @param grades table
function ESX.CreateJob(name, label, grades)
local currentResourceName = GetInvokingResource()
local success = false
if not name or name == '' then
print("ERROR",currentResourceName, 'Missing argument `name`')
return success
end
if not label or label == '' then
print("ERROR",currentResourceName, 'Missing argument `label`')
return success
end
if type(grades) ~= "table" or not next(grades) then
print("ERROR",currentResourceName, 'Missing argument `grades`')
return success
end
if ESX.DoesJobExist(name, 0) then
print("ERROR",currentResourceName, 'Job already exists: `%s`', name)
return success
end
local queries = {
{ query = 'INSERT INTO jobs (name, label) VALUES (?, ?)', values = { name, label } }
}
for _, grade in pairs(grades) do
queries[#queries + 1] = {
query = 'INSERT INTO job_grades (job_name, grade, name, label, salary, skin_male, skin_female) VALUES (?, ?, ?, ?, ?, ?, ?)',
values = { name, grade.grade, grade.name, grade.label, grade.salary, type(grade.skin_male) == "table" and json.encode(grade.skin_male) or '{}', type(grade.skin_female) == "table" and json.encode(grade.skin_female) or '{}' }
}
end
success = exports.oxmysql:transaction_async(queries)
if not success then
print("ERROR", currentResourceName, 'Failed to insert one or more grades for job: `%s`', name)
return success
end
local job = { name = name, label = label, grades = {} }
for _, v in pairs(grades) do
job.grades[tostring(v.grade)] = { job_name = name, grade = v.grade, name = v.name, label = v.label, salary = v.salary, skin_male = v.skin_male or '{}', skin_female = v.skin_female or '{}' }
end
ESX.Jobs[name] = job
print("SUCCESS", currentResourceName, 'Job created successfully: `%s`', name)
TriggerEvent('esx:jobCreated', name, ESX.Jobs[name])
return success
end
Restart your server
Last updated