Security HUD
System Watchdog
×
Threads Scanned
-- / --
SYS. LOAD --%
AI SHIELD ACTIVE
DMCA Policy
×

📋 DMCA Compliance

This platform and community fully complies with the Digital Millennium Copyright Act (DMCA) and international copyright laws. We take all copyright protection seriously.

🛡️ Copyright Protection

If you believe a posted item belongs to you or violates your copyright, you may file a DMCA takedown request through our official channels. Upon receiving a valid claim, the infringing content will be removed within 24 hours.

What's new
×
Fiveguard

Script Buy and manage your own trucker logistics

ivan2381997

Silver Elite
Joined
May 7, 2021
Messages
36
Reaction score
22
Points
156
hello am getting error,something about try compare number with nil,am using esx legacy,oxmysql
 

Rivvy81

Bronze Elite
Joined
Feb 18, 2022
Messages
16
Reaction score
2
Points
166
Location
Australia
Fixed menu not opening. Added english language in the menu, the html side. Added the required vehicles so as to make it work.
*** Hidden text: cannot be quoted. ***

Both the script and the vehicles are added here so you can access it.
Nice
 

Rivvy81

Bronze Elite
Joined
Feb 18, 2022
Messages
16
Reaction score
2
Points
166
Location
Australia
Fixed menu not opening. Added english language in the menu, the html side. Added the required vehicles so as to make it work.
*** Hidden text: cannot be quoted. ***

Both the script and the vehicles are added here so you can access it.
Nice.
 

nukepug

Bronze Elite
Joined
Feb 25, 2022
Messages
29
Reaction score
2
Points
156
Location
belgie
Hey,

im trying to install this. The server side tried to instal the Sql but it got an error. So i did i manually en crossed it out in server side. But i dont got the menu to work in this version. If i use esx_vex_driver ican open the menu, add money, buy trucks etc

it gives me this when i do it on auto
[ script:eek:xmysql] SCRIPT ERROR in promise (unhandled): Error: esx_vex_trucker was unable to execute a query!
[ script:eek:xmysql] You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'CREATE TABLE IF NOT EXISTS `trucker_drivers` (

But i cant start missions it gives me this error

[ script:es_extended] [INFO] Player "Nuke Z" has connected to the server. ID: 1
[script:esx_vex_truck] SCRIPT ERROR: @esx_vex_trucker/server.lua:361: attempt to compare nil with number
[script:esx_vex_truck] > handler (@esx_vex_trucker/server.lua:361)
[script:esx_vex_truck] > query_default (@oxmysql/dist/server/build.js:16108)
[script:esx_vex_truck] > processTicksAndRejections (node:internal/process/task_queues:96)

it refers to this

[script:esx_vex_truck] > handler (@esx_vex_trucker/server.lua:361)
if tonumber(query_users[1].fragile) >= tonumber(query[1].fragile) then

[script:esx_vex_truck] > query_default (@oxmysql/dist/server/build.js:16108)
// src/server/db/query.js
var query_default;
var init_query = __esm({
"src/server/db/query.js"() {
init_config();
init_utils();
init_pool();
query_default = async (type, invokingResource, query, parameters, cb) => {
if (!isReady)
serverReady();
let result, executionTime;
try {
[query, parameters, cb] = parseArguments(invokingResource, query, parameters, cb);
scheduleTick();
[result, _, executionTime] = await pool_default.query(query, parameters);
if (executionTime >= mysql_slow_query_warning || mysql_debug)
console.log(`^3[${mysql_debug ? "DEBUG" : "WARNING"}] ${invokingResource} took ${executionTime}ms to execute a query!
${query} ${JSON.stringify(parameters)}^0`);
} catch (err) {
throw new Error(`${invokingResource} was unable to execute a query!
${err.message}
${err.sql || `${query} ${JSON.stringify(parameters)}`}`);
}
if (cb)
cb(response(type, result)); -----------------------------------------------------------------------THIS LINE
else
return response(type, result);
};
}
});


FIX only works with MYSQL not OXY
 
Last edited:

H3XX1TT

Gold Elite
Joined
Dec 8, 2021
Messages
60
Reaction score
1,302
Points
306
Location
Germany
my drivers not working and earn money for the business....
 

Danascapone

Member
Joined
Apr 4, 2022
Messages
33
Reaction score
0
Points
166
Location
Liverpool
Automatically gets executed. It is in the server side of the script
mate, i just fucking got a problem, before its automatically executed in DB sql. Now i fucking get error CREATE TABLE IF NOT EXISTS all tables shows in console, why not they now automatically executed in db?? can you explain me please?
 

Danascapone

Member
Joined
Apr 4, 2022
Messages
33
Reaction score
0
Points
166
Location
Liverpool
SCRIPT ERROR in promise (unhandled): Error: esx_vex_trucker was unable to execute a query!
[ script:eek:xmysql] You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'CREATE TABLE IF NOT EXISTS `trucker_drivers` (
[ script:eek:xmysql] `driver_id` INT(10) UNSIGNE...' at line 19
[ script:eek:xmysql] CREATE TABLE IF NOT EXISTS `trucker_available_contracts` (
[ script:eek:xmysql] `contract_id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
[ script:eek:xmysql] `contract_type` BIT(1) NOT NULL DEFAULT b'0',
[ script:eek:xmysql] `contract_name` VARCHAR(50) NOT NULL DEFAULT '' COLLATE 'utf8mb4_general_ci',
[ script:eek:xmysql] `coords_index` SMALLINT(6) UNSIGNED NOT NULL DEFAULT '0',
[ script:eek:xmysql] `price_per_km` INT(10) UNSIGNED NOT NULL DEFAULT '0',
[ script:eek:xmysql] `cargo_type` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
[ script:eek:xmysql] `fragile` BIT(1) NOT NULL DEFAULT b'0',
[ script:eek:xmysql] `valuable` BIT(1) NOT NULL DEFAULT b'0',
[ script:eek:xmysql] `fast` BIT(1) NOT NULL DEFAULT b'0',
[ script:eek:xmysql] `truck` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci',
[ script:eek:xmysql] `trailer` VARCHAR(50) NOT NULL COLLATE 'utf8mb4_general_ci',
[ script:eek:xmysql] PRIMARY KEY (`contract_id`) USING BTREE
[ script:eek:xmysql] )
[ script:eek:xmysql] COLLATE='utf8mb4_general_ci'
[ script:eek:xmysql] ENGINE=InnoDB
[ script:eek:xmysql] ;
[ script:eek:xmysql]
[ script:eek:xmysql] CREATE TABLE IF NOT EXISTS `trucker_drivers` (
[ script:eek:xmysql] `driver_id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
[ script:eek:xmysql] `user_id` VARCHAR(50) NULL DEFAULT NULL,
[ script:eek:xmysql] `name` VARCHAR(50) NOT NULL DEFAULT '' COLLATE 'utf8mb4_general_ci',
[ script:eek:xmysql] `product_type` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
[ script:eek:xmysql] `distance` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
[ script:eek:xmysql] `valuable` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
[ script:eek:xmysql] `fragile` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
[ script:eek:xmysql] `fast` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
[ script:eek:xmysql] `price` INT(10) UNSIGNED NOT NULL DEFAULT '0',
[ script:eek:xmysql] `price_per_km` INT(10) UNSIGNED NOT NULL DEFAULT '0',
[ script:eek:xmysql] `img` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci',
[ script:eek:xmysql] PRIMARY KEY (`driver_id`) USING BTREE
[ script:eek:xmysql] )
[ script:eek:xmysql] COLLATE='utf8mb4_general_ci'
[ script:eek:xmysql] ENGINE=InnoDB
[ script:eek:xmysql] ;
[ script:eek:xmysql]
[ script:eek:xmysql] CREATE TABLE IF NOT EXISTS `trucker_loans` (
[ script:eek:xmysql] `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
[ script:eek:xmysql] `user_id` VARCHAR(50) NOT NULL,
[ script:eek:xmysql] `loan` INT(10) UNSIGNED NOT NULL DEFAULT '0',
[ script:eek:xmysql] `remaining_amount` INT(10) UNSIGNED NOT NULL DEFAULT '0',
[ script:eek:xmysql] `day_cost` INT(10) UNSIGNED NOT NULL DEFAULT '0',
[ script:eek:xmysql] `taxes_on_day` INT(10) UNSIGNED NOT NULL DEFAULT '0',
[ script:eek:xmysql] `timer` INT(10) UNSIGNED NOT NULL DEFAULT '0',
[ script:eek:xmysql] PRIMARY KEY (`id`) USING BTREE
[ script:eek:xmysql] )
[ script:eek:xmysql] COLLATE='utf8mb4_general_ci'
[ script:eek:xmysql] ENGINE=InnoDB
[ script:eek:xmysql] ;
[ script:eek:xmysql]
[ script:eek:xmysql] CREATE TABLE IF NOT EXISTS `trucker_trucks` (
[ script:eek:xmysql] `truck_id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
[ script:eek:xmysql] `user_id` VARCHAR(50) NOT NULL,
[ script:eek:xmysql] `truck_name` VARCHAR(50) NOT NULL COLLATE 'utf8mb4_general_ci',
[ script:eek:xmysql] `driver` INT(10) UNSIGNED NULL DEFAULT NULL,
[ script:eek:xmysql] `body` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '1000',
[ script:eek:xmysql] `engine` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '1000',
[ script:eek:xmysql] `transmission` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '1000',
[ script:eek:xmysql] `wheels` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '1000',
[ script:eek:xmysql] PRIMARY KEY (`truck_id`) USING BTREE
[ script:eek:xmysql] )
[ script:eek:xmysql] COLLATE='utf8mb4_general_ci'
[ script:eek:xmysql] ENGINE=InnoDB
[ script:eek:xmysql] ;
[ script:eek:xmysql]
[ script:eek:xmysql] CREATE TABLE IF NOT EXISTS `trucker_users` (
[ script:eek:xmysql] `user_id` VARCHAR(50) NOT NULL,
[ script:eek:xmysql] `money` INT(10) UNSIGNED NOT NULL DEFAULT '0',
[ script:eek:xmysql] `total_earned` INT(10) UNSIGNED NOT NULL DEFAULT '0',
[ script:eek:xmysql] `finished_deliveries` INT(10) UNSIGNED NOT NULL DEFAULT '0',
[ script:eek:xmysql] `exp` INT(10) UNSIGNED NOT NULL DEFAULT '0',
[ script:eek:xmysql] `traveled_distance` DOUBLE UNSIGNED NOT NULL DEFAULT '0',
[ script:eek:xmysql] `skill_points` INT(10) UNSIGNED NOT NULL DEFAULT '0',
[ script:eek:xmysql] `product_type` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
[ script:eek:xmysql] `distance` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
[ script:eek:xmysql] `valuable` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
[ script:eek:xmysql] `fragile` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
[ script:eek:xmysql] `fast` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
[ script:eek:xmysql] `loan_notify` BIT(1) NOT NULL DEFAULT b'0',
[ script:eek:xmysql] PRIMARY KEY (`user_id`) USING BTREE
[ script:eek:xmysql] )
[ script:eek:xmysql] COLLATE='utf8mb4_general_ci'
[ script:eek:xmysql] ENGINE=InnoDB
[ script:eek:xmysql] ;
[ script:eek:xmysql]
[ script:eek:xmysql] []
[ script:eek:xmysql] > <unknown> (@oxmysql/dist/build.js:21745)
[ script:eek:xmysql] > processTicksAndRejections (node:internal/process/task_queues:96)
[ script:eek:xmysql] > async rawQuery (@oxmysql/dist/build.js:21734)
[ script:eek:xmysql]
[ script:eek:xmysql] SCRIPT ERROR in promise (unhandled): Error: esx_vex_trucker was unable to execute a query!
[ script:eek:xmysql] Table 'esxlegacy_93b1bf.trucker_available_contracts' doesn't exist
[ script:eek:xmysql] SELECT COUNT(contract_id) as qtd FROM trucker_available_contracts []
[ script:eek:xmysql] > <unknown> (@oxmysql/dist/build.js:21745)
[ script:eek:xmysql] > processTicksAndRejections (node:internal/process/task_queues:96)
[ script:eek:xmysql] > async rawQuery (@oxmysql/dist/build.js:21734)
[ script:eek:xmysql]
[ script:eek:xmysql]
[ script:eek:xmysql]
[ script:eek:xmysql]


Clear Console Announcement
 

lolkhoo123

Fixed menu not opening. Added english language in the menu, the html side. Added the required vehicles so as to make it work.
*** Hidden text: cannot be quoted. ***

Both the script and the vehicles are added here so you can access it.
 

MadSloth

Bronze Elite
Joined
Aug 28, 2022
Messages
10
Reaction score
2
Points
166
Location
Deutschland
Fixed menu not opening. Added english language in the menu, the html side. Added the required vehicles so as to make it work.
*** Hidden text: cannot be quoted. ***

Both the script and the vehicles are added here so you can access it.
 

Pqviin

Member
Joined
Jul 2, 2022
Messages
4
Reaction score
0
Points
156
Location
Babawagenstraße 69
Hi, cool script but i can't start a job. The live consol says:

[script:esx_vex_truck] SCRIPT ERROR: @esx_vex_trucker/server.lua:247: attempt to compare nil with number
[script:esx_vex_truck] > handler (@esx_vex_trucker/server.lua:247)
[script:esx_vex_truck] > <unknown> (@oxmysql/dist/build.js:21729)
[script:esx_vex_truck] > processTicksAndRejections (node:internal/process/task_queues:96)
[script:esx_vex_truck] > async rawQuery (@oxmysql/dist/build.js:21719)
 

C3nSure

Gold Elite
Joined
Nov 30, 2021
Messages
162
Reaction score
158
Points
266
Location
Paris
Fixed menu not opening. Added english language in the menu, the html side. Added the required vehicles so as to make it work.
*** Hidden text: cannot be quoted. ***

Both the script and the vehicles are added here so you can access it.
 

lahyene01

Member
Joined
Aug 22, 2022
Messages
7
Reaction score
0
Points
146
Location
france
Hi, cool script but i can't start a job. The live consol says:

[script:esx_vex_truck] SCRIPT ERROR: @esx_vex_trucker/server.lua:247: attempt to compare nil with number
[script:esx_vex_truck] > handler (@esx_vex_trucker/server.lua:247)
[script:esx_vex_truck] > <unknown> (@oxmysql/dist/build.js:21729)
[script:esx_vex_truck] > processTicksAndRejections (node:internal/process/task_queues:96)
[script:esx_vex_truck] > async rawQuery (@oxmysql/dist/build.js:21719)

you managed to correct this error because I have the same ... :/
 

03357039937

Bronze Elite
Joined
Nov 14, 2021
Messages
18
Reaction score
3
Points
166
Location
Pakistan
Fixed menu not opening. Added english language in the menu, the html side. Added the required vehicles so as to make it work.
*** Hidden text: cannot be quoted. ***

Both the script and the vehicles are added here so you can access it.
 

gameadictive

Gold Elite
Joined
May 5, 2022
Messages
36
Reaction score
34
Points
176
Location
46340, Requena
Im using the new renzu_garage main branch wich uses keys as items using ox_inventory.

Anyone have some idea about how to make that function work too in the vex_trucker script?
 
Top