Skip to content

unable to use box? #3

@mrdeano

Description

@mrdeano

hey so i was testing this out and i see you posted your example in another issue but when i go in game and try it i press alt to bring up the eye and nothing shows here is my config

local Config, Entities, Models, Zones, Bones, Players, Types, Intervals, ConfigFunctions, PlayerData = {}, {}, {}, {}, {}, {}, {}, {}, {}, {}
Types[1], Types[2], Types[3] = {}, {}, {}

Config.ESX = true
Config.QBCore = false
Config.UseGrades = false
Config.LindenInventory = false
Config.MaxDistance = 2 -- Fallback for if you left the distance in the wrong place or forgot it
Config.Debug = false -- Debug mode

Config.VehicleBones = {'chassis', 'windscreen', 'seat_pside_r', 'seat_dside_r', 'bodyshell', 'suspension_lm', 'suspension_lr', 'platelight', 'attach_female', 'attach_male', 'bonnet', 'boot', 'chassis_dummy', 'chassis_Control', 'door_dside_f', 'door_dside_r', 'door_pside_f', 'door_pside_r', 'Gun_GripR', 'windscreen_f', 'platelight', 'VFX_Emitter', 'window_lf', 'window_lr', 'window_rf', 'window_rr', 'engine', 'gun_ammo', 'ROPE_ATTATCH', 'wheel_lf', 'wheel_lr', 'wheel_rf', 'wheel_rr', 'exhaust', 'overheat', 'misc_e', 'seat_dside_f', 'seat_pside_f', 'Gun_Nuzzle', 'seat_r'}

Config.BoxZones = {
-- the name of the table and the name parameter can be the same
["OpenCloakroomMenu"] = { -- has to be unique
name = "OpenCloakroomMenu", -- has to be unique
coords = vector3(461.22,-1000.01,31.689), -- example coords
length = 1.0, -- float value
width = 4.0, -- float value
heading = 178.0, -- integer
debugPoly = true, -- boolean, it makes a green box if true
minZ = 30.00, -- float value
maxZ = 31.30, -- float value
options = {
{
type = "function", -- client, server, function (only function in bt-target), action (if you use this you can make the action parameter a function, this will get the entity you're looking at sent to so you can check on that)
event = "esx_policejob:OpenCloakroomMenu",
-- parameters = {}, -- put anything you want inside this to get it through an event get it with: data.parameters, same goes for any other option here, you can get them too
icon = "fas fa-shield-alt", -- an example one, get it from fontawesome.com
label = "Change Clothes",
job = "police" -- or a table if you have more jobs, like this {["police"] = 1, ["ambulance"] = 3}
},
},
distance = 2.0 -- float value in gta units, 1.8 is mostly against an object
},
}

Config.CircleZones = {

}

Config.TargetModels = {

}

Config.TargetEntities = {

}

Config.TargetBones = {

}

Config.EntityZones = {

}

Config.PedOptions = {

}

Config.VehicleOptions = {

}

Config.ObjectOptions = {

}

Config.PlayerOptions = {

}

ConfigFunctions.ItemCount = function(item)
if Config.LindenInventory then return exports['linden_inventory']:CountItems(item)[item] > 0
elseif Config.ESX then
for k, v in pairs(PlayerData.inventory) do
if v.name == item then
return v.count > 0
end
end
elseif Config.QBCore then
for k, v in pairs(PlayerData.items) do
if v.name == item then
return v.amount > 0
end
end
end

return false

end

return Config, Entities, Models, Zones, Bones, Players, Types, Intervals, ConfigFunctions, PlayerData

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions