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 community.

Script Buy and manage your own store esx

ALEN TL

ALEN TL#5009
Moderator
Joined
Sep 18, 2021
Messages
374
Reaction score
66
Points
141
Age
16
Location
KOCHI
esx_stores script with 4 stores added and ammunition removed for weapon clip and stuff. Fully working.
 

Attachments

  • esx_stores.zip
    44.3 KB · Views: 350

fabian02

Bronze Elite
Joined
Jul 4, 2021
Messages
9
Reaction score
0
Points
86
Have someone an idea?
SCRIPT ERROR: @esx_stores/server.lua:170: attempt to index a nil value (local 'query_2')
 

ALEN TL

ALEN TL#5009
Moderator
Joined
Sep 18, 2021
Messages
374
Reaction score
66
Points
141
Age
16
Location
KOCHI
Have someone an idea?
SCRIPT ERROR: @esx_stores/server.lua:170: attempt to index a nil value (local 'query_2')
Don't you have bread and water in your items. Maybe that. Or buy a store and you have to do the job and buy the items.
 
Joined
Sep 3, 2021
Messages
4
Reaction score
0
Points
41
Location
america
Don't you have bread and water in your items. Maybe that. Or buy a store and you have to do the job and buy the items.
Can i add the ammunation back in or is that not possible.. I uncommented the code in the config but when i go to buy a gun it doesnt take the money or give me the weapon and also doest give me the option to buy it,
 

ALEN TL

ALEN TL#5009
Moderator
Joined
Sep 18, 2021
Messages
374
Reaction score
66
Points
141
Age
16
Location
KOCHI
T
Can i add the ammunation back in or is that not possible.. I uncommented the code in the config but when i go to buy a gun it doesnt take the money or give me the weapon and also doest give me the option to buy it,
That is possible. I just commented out the stuff. You can do that alone --[[]] Remove these and you can make the ammunition work. Else contact me on dc. I will send the server side file.
 
Joined
Sep 3, 2021
Messages
4
Reaction score
0
Points
41
Location
america
T

That is possible. I just commented out the stuff. You can do that alone --[[]] Remove these and you can make the ammunition work. Else contact me on dc. I will send the server side file.
yea if you could do that it would be awesome because after uncommenting everything i seen it doesnt give me the gun when i buy it and it doesnt give an option to buy the business
 

ALEN TL

ALEN TL#5009
Moderator
Joined
Sep 18, 2021
Messages
374
Reaction score
66
Points
141
Age
16
Location
KOCHI
Yea actually its not giving me the option to buy the regular stores either. The only error im seeing is the same one

fabian02 was getting but thats only when i try to view the jobs for the store... Any way you can help me out .​

I don't have the issue while checking for jobs. Make someone buy a store and you try there
 
Joined
Sep 3, 2021
Messages
4
Reaction score
0
Points
41
Location
america
I don't have the issue while checking for jobs. Make someone buy a store and you try there
it doesnt give the option to buy the store atall when you walk up and press e no ui opens up not for the ammunation or the gas station. The only thing thats working is it lets me buy items from the stores. Looking at the code it looks like the part that opens up the ui to buy the stores is commented out
 

BlackMautz

Bronze Elite
Joined
Dec 9, 2021
Messages
6
Reaction score
1
Points
26
Location
Deutschland
Hi. i have this mistake
[script: esx_stores] SCRIPT ERROR: @ esx_stores / server.lua: 206: attempt to perform arithmetic on a nil value (field '?')
can someone help me?

I didn't edit anything there
 

ALEN TL

ALEN TL#5009
Moderator
Joined
Sep 18, 2021
Messages
374
Reaction score
66
Points
141
Age
16
Location
KOCHI
Hi. i have this mistake
[script: esx_stores] SCRIPT ERROR: @ esx_stores / server.lua: 206: attempt to perform arithmetic on a nil value (field '?')
can someone help me?

I didn't edit anything there
Chnage the items in the config. Also the store must be bought by someone indeeed. You can also buy the items but only this error will be printed. I have added only the bread and water in the config. Check whether you have it in the items list. I mean the items table.
 

BlackMautz

Bronze Elite
Joined
Dec 9, 2021
Messages
6
Reaction score
1
Points
26
Location
Deutschland
can i see everything in the shops because i'm admin?
 

Attachments

  • 1639980285756.png
    1639980285756.png
    326 bytes · Views: 22

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