Configuration
Learn how to configure the resource.
Configuring a New Store Type
To add a new store type, follow these steps:
- Open the
config.lua
file in the resource folder. - Find the
Config.Stores
table. - Add a new store entry with this structure:
Customization Guide
name
– Unique identifier for the store.title
– The displayed store name.logo
– URL of the store’s logo.colors
– Customize the UI colors.categories
– Add store categories and products.blip
– Set the map blip properties.ped
– Define the store NPC and animation.locations
– Specify where the store appears.
After making changes, save the file and restart the resource.
Adding Store Locations
To add a new location to an existing store type:
- Open
config.lua
. - Locate the relevant store in
Config.Stores
. - Add a new entry to the
locations
array:
- Replace
x, y, z, heading
with the store’s coordinates. - Save the file and restart the resource.
Translating the Store System
To change the store system language:
- Open
config.lua
. - Locate
Config.lang
. - Replace the existing text with your desired translations.
- Save the file and restart the resource.
Store Configuration Reference
Store Table Properties
Prop | Type | Default |
---|---|---|
name | string | - |
title | string | - |
logo | string | - |
colors | Color Table | - |
categories | Category Table | - |
blip | Blip Table | - |
ped | Ped Table | - |
locations | vector4[] | - |
Color Table Properties
Prop | Type | Default |
---|---|---|
bg | string | - |
bgGradient | string | - |
primary | string | - |
text | string | - |
colorCode | string | - |
Category Table Properties
Prop | Type | Default |
---|---|---|
title | string | - |
products | Product Table[] | - |
Product Table Properties
Prop | Type | Default |
---|---|---|
label | string | - |
name | string | - |
price | number | - |
image | string | - |
Blip Table Properties
Prop | Type | Default |
---|---|---|
sprite | number | - |
scale | number | - |
color | number | - |