🏪Stores


Dependencies:
Renewed Lib: https://github.com/Renewed-Scripts/Renewed-Lib/releases/tag/v2.0.7
Shop Creation
['Store Name'] = {
ped = {
model = `s_m_m_gaffer_01`,
scenario = 'WORLD_HUMAN_AA_SMOKE',
},
target = {
label = 'Talk',
distance = 3.0,
},
blip = {
show = boolean,
sprite = sprite_id,
color = color_id,
scale = scale_value,
},
itemRestockTime = 30,
paymentMethods = {
['cash'] = {
label = 'Cash',
icon = 'fa-solid fa-wallet',
},
['bank'] = {
label = 'Bank',
icon = 'fas fa-university',
},
},
locations = {
[1] = {
coords = vector4(x, y, z, heading),
itemType = 'tools',
businessHours = {
openTime = 0,
closeTime = 24,
}
},
},
},You Cannot have both target and drawText parameters for a store
Please note that for items to be accepted as a payment option it must be defined as isItem
ped:
tablemodel:
hashPed model identifierscenario:
stringScenario name for the ped
target:
tablelabel:
stringLabel for the target interactiondistance:
numberDistance for the target interaction
drawText:
tablelabel:
stringLabel for the drawTextdistance: Distance for the drawText
openKey:
stringKey to open the drawText
blip:
tableshow:
booleanshow or hide the blipsprite:
numberSprite ID for the blipcolor:
numberColor ID for the blipscale:
numberScale value for the blip
paymentMethods:
table['payment']:
tableEach key is a payment method (eg. 'cash', 'bank')label:
stringdisplay name for the payment methodicon:
stringicon for the payment methodisItem:
boolfor payment with itemsuseWorth:
boolif true it uses the the metadata worth of the item else uses item count
itemRestockTime:
numbertime in minutes to restock itemslocations:
tablecoords:
vector4Coordinates and heading for the location (vector4)itemType:
stringType of items available at this locationbusinessHours:
tableTime the store is accessibleopenTime:
numbercloseTime:
number
Discount Codes
['police'] = {
discount = 50, -- 50% discount
code = 'police10', -- discount code
}[job_name]: Job needed for the discount code to be used and applied
discount: The percentage discount for the job (e.g., 50 for 50% discount).
code: The discount code associated with the job (e.g., 'police10')
Last updated