FAQ

How do I set up a new locaiton?

It's as easy copying a location file that already exists and changing the locations of targets to where you want them. Most servers are default set up with a polyzone creator.

  1. in your chat do /pzcreate box and a prompt will come up. Title it whatever you'd like to figure out what to put for length and width look at one of the example set up locations.

  2. Once the box is created use your arrow keys to move the box around. Your Ctrl key will give you precise control over it

  3. When finished type /pzcreate (Pro Tip: To create the same size as the last one do /pzlast)

Example:

  • l = length

  • w = width

How can I set up food at the location?

In the Client.lua add the following snippet

if loc.Targets.Prepare then
	for k, v in pairs(loc.Targets.Prepare) do
	Targets[loc.label.."Prepare"..k] =
	exports['qb-target']:AddBoxZone(loc.label.."Prepare"..k, v.coords, v.l, v.w, { name=loc.label.."Prepare"..k, heading = v.h, debugPoly=Config.Debug, minZ=v.bottom, maxZ=v.top },
	{ options = { { event = "jim-bars:Crafting", icon = "fas fa-cocktail", label = Loc[Config.Lan].target["prep_food"], job = job, gang = gang, craftable = Crafting.Prepare, header = Loc[Config.Lan].menu["cocktail_prepare"], coords = v.coords }, }, distance = 2.0 })
	if v.prop then
		if not Props[loc.label.."Prepare"..k] then
			Props[loc.label.."Prepare"..k] = makeProp({prop = `v_res_mchopboard`, coords = vector4(v.coords.x, v.coords.y, v.coords.z, v.h)}, 1, 0)
			end
		end
	end
end

Then in locales add

Then in each location that you have add your prepare targets

Do you have any pre-setup snippets so I don't have to do the work myself?

In our Discord we have several snippets look for the bar snippets channel.

Last updated