Skip to content

Commit

Permalink
fix(compat/qb-target): AddBoxZone for useZ or lack of maxZ option (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
Manason authored Nov 7, 2022
1 parent 8a26ddf commit fdddaed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/compat/qb-target.lua
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ exportHandler('AddBoxZone', function(name, center, length, width, options, targe
return lib.zones.box({
name = name,
coords = center,
size = vec3(width, length, math.abs(options.maxZ - options.minZ)),
size = vec3(width, length, (options.useZ or not options.maxZ) and center.z or math.abs(options.maxZ - options.minZ)),
debug = options.debugPoly,
rotation = options.heading,
options = convert(targetoptions),
Expand Down

0 comments on commit fdddaed

Please sign in to comment.