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 NoPixel 3.0 Inspired VehicleShop ESX

mar.

Gold Elite
Joined
Aug 24, 2021
Messages
31
Reaction score
104
Points
221
Location
United States
everything is functional except removing the money from the bank when we buy the vehicle.
 

PatrixonMaster

Bronze Elite
Joined
Apr 18, 2021
Messages
46
Reaction score
4
Points
156
i have error in the console ,,server.lua:55: unexpected symbol near ')'
 

mar.

Gold Elite
Joined
Aug 24, 2021
Messages
31
Reaction score
104
Points
221
Location
United States
i have error in the console ,,server.lua:55: unexpected symbol near ')'
RegisterServerEvent('eotix-vehicleshop:CheckMoneyForVeh')
AddEventHandler('eotix-vehicleshop:CheckMoneyForVeh', function(veh, price, name, vehicleProps)
local _source = source
local xPlayer = ESX.GetPlayerFromId(_source)
if xPlayer.getMoney() >= tonumber(price) then
xPlayer.removeMoney(tonumber(price))
local vehiclePropsjson = json.encode(vehicleProps)
if Config.SpawnVehicle then
stateVehicle = 0
else
stateVehicle = 1
end

MySQL.Async.execute('INSERT INTO owned_vehicles (owner, plate, vehicle) VALUES ( Owner Owner, @plate, @vehicle)',
{
[' Owner Owner'] = xPlayer.identifier,
['@plate'] = vehicleProps.plate,
['@vehicle'] = json.encode(vehicleProps)
}, function (rowsChanged)
end)
end
end)
 

Spectrum

Bronze Elite
Joined
Apr 6, 2021
Messages
34
Reaction score
3
Points
156
The ui is not 3.0 but its esx dealership 2.0 ui , this is really different than original it use a similar system like np because it doesnt use sql. fixed server lua problem "end " was missing. its a great work BTW it could be nice is it has the spawn function.
 

Eotix64

Silver Elite
Joined
Jun 27, 2021
Messages
29
Reaction score
141
Points
251
The ui is not 3.0 but its esx dealership 2.0 ui , this is really different than original it use a similar system like np because it doesnt use sql. fixed server lua problem "end " was missing. its a great work BTW it could be nice is it has the spawn function.
Updated the link
1 Fixed the money Function
2 Maked cars spawn after buying
 

Lucky~

Gold Elite
Joined
Apr 2, 2021
Messages
80
Reaction score
209
Points
296
Location
Malaysia
Updated the link
1 Fixed the money Function
2 Maked cars spawn after buying
Hi bro still have few problem 1.when i buying complete the vehicle the menu not close up 2. my account not have money but still can buying the car
 

Eotix64

Silver Elite
Joined
Jun 27, 2021
Messages
29
Reaction score
141
Points
251
Hi bro still have few problem 1.when i buying complete the vehicle the menu not close up 2. my account not have money but still can buying the car
its removing money from cash and it haves notification that says 'Press ESC to close the Menu'
 

slotibitch

Bronze Elite
Joined
Apr 14, 2021
Messages
20
Reaction score
4
Points
156
And if you could be amazing.... qtarget compability
 

slotibitch

Bronze Elite
Joined
Apr 14, 2021
Messages
20
Reaction score
4
Points
156
I Updated the link

I tested it and works perfectly
- Removes Money
-Dont let you buy if you dont have enough money
And Maked the UI(MENU) Close automatic
GREETINGS FROM EOTIX


We have an issue. So if i create a shop in paleto.... and bought the car in paleto.. im gonna spawn in Ls... we need to fix that
 

slotibitch

Bronze Elite
Joined
Apr 14, 2021
Messages
20
Reaction score
4
Points
156
Multiple bug or things to improve...!!!

--Take the Money from the bank and not in pocket
-- (optionnal) add qtarget option or implamante for the shop..!!! more amazing like that
-- (IMPORTNAT) f i create a shop in paleto.... and bought the car in paleto.. im gonna spawn in Ls... we need to fix that
--( VERY VERY VERY important, ) No license verification or option about that !!! We need that :) Thanks !
 

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