brentn5 / bt-target Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
When we enable debugPoly
and reload the script it duplicates with every reload and doesnt delete the old one. and that makes fps a literall mess and a restart is required to get rid of the duplicates
PolyZone is downloaded & running.
bt-target is downloaded & running.
Error occurs no matter where I run the example code from.
How do I implement an if else condition into the options parameter? For example, if a cop is on duty, then display sign off as a label and vice versa,
How can i add a event which is like this TriggerEvent("server-inventory-open", "1", "Shop")
When adding this on event field its not Working :-
options = {
{
event = "server-inventory-open","1","Shop",
icon = "fas fa-coffe",
label = "shop",
},
},
Would be nice if there is a function to remove a registered target. Useful for temporary targeting, player ownership, etc.
Haven't looked at the code yet but I'll try to give a PR if I find a solution. :--)
Thank you for script. I small have problem:
local atm = {
`prop_atm_01`,
`prop_atm_02`,
`prop_atm_03`,
`prop_fleeca_atm`,
506770882,
}
AddTargetModel(atm, {
options = {
{
event = "target:doatm",
icon = "fas fa-share-square",
label = "ATM",
},
},
distance = 10.5
})
In this case fleeca_atm not working, all another props work correctly.
How would i go off triggering a event when an option is clicked?
Citizen.CreateThread(function()
AddTargetBone(bones, {
options = {
{
event = "door",
icon = "fas fa-door-open",
label = "Toggle Door",
},
{
event = "unlock",
icon = "fas fa-door-open",
label = "Unlock Door",
},
},
job = {"police", "ambulance", "mechanic"},
distance = 1.5
})
end)
bad argument #1 to 'pairs' table expected, got nill
function AddTargetBone(bones, parameteres)
for _, bone in pairs(bones) do
Bones[bone] = parameteres
end
end
I have been trying to get this working with the np-inventory but the event to open the inventory are more then 1 word so it is
"server-inventory-open","5","shop"
instead of one bit of text inside of "", the script does not work with several bits in the event
how to downlload last ver ?
What kind of license is this released under? Could you clarify?
Got some issues with Polyzones it throws an error, since it can't work with the vector2 values, if i do vector3's or even add a min and max height, it dos not react either.
exports['bt-target']:AddPolyzone("Test", {vector2(733.60607910156, 658.37176513672), vector2(726.609375, 638.64202880859), vector2(646.35656738281, 668.22436523438), vector2(653.34967041016, 687.67864990234)}, {
name="Test",
debugPoly=true,
}, {
options = {
{
event = "signon",
icon = "far fa-clipboard",
label = "Sign On",
},
},
job = {"all"},
distance = 2.5
})
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.