Welcome to the forum, Guest

To access forum content and all of our services, you must register or log in to the forum. Joining the forum and all content on the forum is completely free.

The world's largest FiveM Forum and GTA 5 Forum address

Hello dear member,
We work 24/7 to provide the most valuable content that will be of use to you,
you can share content and support the entire FiveM & GTA 5 mods.

Script MF_SellCars

tryy

Bronze Elite
Joined
Aug 24, 2021
Messages
9
Reaction score
26
Points
166
Salut merci beaucoup pour ce jolie script très intéréssant !
Petite question : Il est possible de pouvoir mettre en vente le véhicule seulement dans une zone prédéfini ?
 

pepo32323

Silver Elite
Joined
Jun 4, 2021
Messages
28
Reaction score
12
Points
156
Wheres the SQL file man... Without the sql this doesnt work properly
 

ALEN TL

ALEN TL#5009
Moderator
Joined
Sep 18, 2021
Messages
389
Solutions
1
Reaction score
2,904
Points
321
Age
17
Location
KOCHI
Wheres the SQL file man... Without the sql this doesnt work properly
What sql bro. DELETE FROM `owned_vehicles` WHERE ['@plate'] = plate.
The function is simple and no more stuffs are needed as sql. I haven't run it and I don't share an experience
But this is what I found as the logic
 

pepo32323

Silver Elite
Joined
Jun 4, 2021
Messages
28
Reaction score
12
Points
156
What sql bro. DELETE FROM `owned_vehicles` WHERE ['@plate'] = plate.
The function is simple and no more stuffs are needed as sql. I haven't run it and I don't share an experience
But this is what I found as the logic
The vehicles dont save upon server restart. The script works fine just something is missing i think is the sql. If you can make some sort of sql i dont have the knowlege for this i will probably fk up somewhere at the start
 

ALEN TL

ALEN TL#5009
Moderator
Joined
Sep 18, 2021
Messages
389
Solutions
1
Reaction score
2,904
Points
321
Age
17
Location
KOCHI
The vehicles dont save upon server restart. The script works fine just something is missing i think is the sql. If you can make some sort of sql i dont have the knowlege for this i will probably fk up somewhere at the start
Any errors or something
 

pepo32323

Silver Elite
Joined
Jun 4, 2021
Messages
28
Reaction score
12
Points
156
Any errors or something
No i mean it works fine no errors but when the server restarts the vehicle is not in the place i placed it for sale. It just dissapears seems like it doesnt save the vehicle anywhere. The readme file says there is some sort of SQL file but its not included in the link
 

ALEN TL

ALEN TL#5009
Moderator
Joined
Sep 18, 2021
Messages
389
Solutions
1
Reaction score
2,904
Points
321
Age
17
Location
KOCHI
Yeah man. I got the sql errrors.
[ script:mysql-async] [MariaDB:10.5.12-MariaDB-1build1] [ERROR] [advanced_vehicles] An error happens for query "SELECT km, vehicle_handling, nitroAmount, nitroRecharges FROM `advanced_vehicles` WHERE vehicle = ? AND user_id = ? AND plate = ? : ["ardent","63a94028be12a05eae6452f53695f9f67b961b26","93PNF378"]": ER_NO_SUCH_TABLE: Table 'alen.advanced_vehicles' doesn't exist
[ script:mysql-async] [MariaDB:10.5.12-MariaDB-1build1] [ERROR] [advanced_vehicles] An error happens for query "INSERT INTO `advanced_vehicles` (user_id,vehicle,plate) VALUES (?,?,?) : ["63a94028be12a05eae6452f53695f9f67b961b26","ardent","93PNF378"]": ER_NO_SUCH_TABLE: Table 'alen.advanced_vehicles' doesn't exist
[ script:mysql-async] [MariaDB:10.5.12-MariaDB-1build1] [ERROR] [advanced_vehicles] An error happens for query "SELECT km, vehicle_handling, nitroAmount, nitroRecharges FROM `advanced_vehicles` WHERE vehicle = ? AND user_id = ? AND plate = ? : ["ardent","63a94028be12a05eae6452f53695f9f67b961b26","93PNF378"]": ER_NO_SUCH_TABLE: Table 'alen.advanced_vehicles' doesn't exist
 

ALEN TL

ALEN TL#5009
Moderator
Joined
Sep 18, 2021
Messages
389
Solutions
1
Reaction score
2,904
Points
321
Age
17
Location
KOCHI
Needs adding some more stuff into the script.
 

ALEN TL

ALEN TL#5009
Moderator
Joined
Sep 18, 2021
Messages
389
Solutions
1
Reaction score
2,904
Points
321
Age
17
Location
KOCHI
Yeah man. I got the sql errrors.
[ script:mysql-async] [MariaDB:10.5.12-MariaDB-1build1] [ERROR] [advanced_vehicles] An error happens for query "SELECT km, vehicle_handling, nitroAmount, nitroRecharges FROM `advanced_vehicles` WHERE vehicle = ? AND user_id = ? AND plate = ? : ["ardent","63a94028be12a05eae6452f53695f9f67b961b26","93PNF378"]": ER_NO_SUCH_TABLE: Table 'alen.advanced_vehicles' doesn't exist
[ script:mysql-async] [MariaDB:10.5.12-MariaDB-1build1] [ERROR] [advanced_vehicles] An error happens for query "INSERT INTO `advanced_vehicles` (user_id,vehicle,plate) VALUES (?,?,?) : ["63a94028be12a05eae6452f53695f9f67b961b26","ardent","93PNF378"]": ER_NO_SUCH_TABLE: Table 'alen.advanced_vehicles' doesn't exist
[ script:mysql-async] [MariaDB:10.5.12-MariaDB-1build1] [ERROR] [advanced_vehicles] An error happens for query "SELECT km, vehicle_handling, nitroAmount, nitroRecharges FROM `advanced_vehicles` WHERE vehicle = ? AND user_id = ? AND plate = ? : ["ardent","63a94028be12a05eae6452f53695f9f67b961b26","93PNF378"]": ER_NO_SUCH_TABLE: Table 'alen.advanced_vehicles' doesn't exist
Actually this was from an another script. Sorry for that.
 

ALEN TL

ALEN TL#5009
Moderator
Joined
Sep 18, 2021
Messages
389
Solutions
1
Reaction score
2,904
Points
321
Age
17
Location
KOCHI
One of the problems is that I use t1ger_cardealer
So
There is an extra model column in the owned vehicles
so the query will be like
INSERT INTO `owned_vehicles` ('owner', 'vehicle', 'plate', model) WHERE
and the rest stuff
 

Login or register to get more out of the forum!

Login or register to get more out of the forum!

Register

Creating an account on the forum is completely free.

Register now
Log in

If you have an account, please login

Log in

Theme editor

Theme customizations

Graphic Backgrounds

Granite Backgrounds