📣
Shout Out To Djonluc (opens in a new tab) For Making A Installation And Getting Started Guide
Merchants
Merchants are located in the merchants folder, you can create any custom merchant by creating a new lua file and following the guide below.
Getting Started
Create a merchant by creating a new lua file and name it anything you want.
merchants/YourMerchantName.lua
Config.Merchants['YourMerchantName'] = {
}Merchant Types
Creates Wandering Ped
Config.Merchants['YourMerchantName'] = {
type = "server",
}- type:
string- server:
ped
- client:
pedmodelzone
- server:
Ped (Server)
Merchant Walks The Single Path
- model:
hash - coords:
vector3[]
['ped'] = {
model = `ped_model`,
coords = {
vector3(0.0, 0.0, 0.0),
vector3(0.0, 0.0, 0.0),
vector3(0.0, 0.0, 0.0),
vector3(0.0, 0.0, 0.0),
}
},Weapons (Server)
You can give the ped merchant a weapon either visible or hidden but only works on server ped
- visible?:
boolean - model:
hash - accuracy:
number - armor?:
number
['weapon'] = {
visible = true,
model = `weapon_model`,
accuracy = 100,
armor = 100,
},Ped (Client)
Static Merchant
- model:
hash - coords:
vector4[] - scenario?:
string - animation?:
table- name:
string - dictionary:
string
- name:
['ped'] = {
model = `ped_model`,
coords = vector4(0.0, 0.0, 0.0, 0.0),
scenario = 'scenario_name',
animation = { name = 'animation_name', dictionary = 'animation_dictionary' }
},Zone (Client)
BoxZone Target
- coords:
vector4 - length:
number - width:
number - minZ:
number - maxZ:
number
['zone'] = {
coords = vector4(0.0, 0.0, 0.0, 0.0),
length = 0,
width = 0,
minZ = 0.0,
maxZ = 0.0,
},Shop Types
Check out Shop for more details
Blips
Check out Blips for more details