
π§©Props
Adding More PROPS
Adding more props that bars can use is very simple via the
config.luafileTo add another prop that a bar can use you must pass the
BarNameas the key and then customize the values to suit your needsTo add another prop simply add your
BarNameas theykeyand then customize thevaluesto suit your server needs inConfig.Propsplease note some target interactions for props and require args passing with the target
Config.Props = {
['Example Bar'] = {
{
Model = 'bkr_prop_fakeid_clipboard_01a', -- prop model
Coords = vector4(-1404.56, -600.13, 31.36, 110.13), -- props spawn coords
Icon = 'fa-solid fa-car', -- icon for target interaction
Label = 'Toggle Duty', -- label for target interaction
Job = Config.CoreSettings.Jobs['Example Bar'].name, -- job set in Config.CoreSettings.Jobs for target interaction
Distance = 3.0, -- distance for target interaction
Event = 'lusty94_bars:client:ToggleDuty', -- event name triggered
},
{
Model = 'prop_crate_11e', -- prop model
Coords = vector4(-1400.98, -603.14, 31.37, 120.67), -- props spawn coords
Icon = 'fa-solid fa-box', -- icon for target interaction
Label = 'Get House Beer', -- label for target interaction
Job = Config.CoreSettings.Jobs['Example Bar'].name, -- job set in Config.CoreSettings.Jobs for target interaction
Distance = 3.0, -- distance for target interaction
Event = 'lusty94_bars:client:GetHouseBeer', -- event name triggered
args = { barName = 'Example Bar' }, --[[ β
Make Sure To Pass barName For house beer input THIS MUST MATCH THE KEY!]]
},
{
Model = 'sf_prop_sf_bowl_fruit_01a', -- prop model
Coords = vector4(-1399.06, -601.54, 31.36, 249.36), -- props spawn coords
Icon = 'fa-solid fa-box', -- icon for target interaction
Label = 'Get Ingredients', -- label for target interaction
Job = Config.CoreSettings.Jobs['Example Bar'].name, -- job set in Config.CoreSettings.Jobs for target interaction
Distance = 3.0, -- distance for target interaction
Event = 'lusty94_bars:client:GetIngredients', -- event name triggered
args = { barName = 'Example Bar' }, --[[ β
Make Sure To Pass barName For ingredients menu THIS MUST MATCH THE KEY!]]
},
},
}Some target locations for props and box zones will need arguments passing with them for various events to determine which bar is accessing that function
β οΈ The BarName args must match the BarName key
Last updated