GithubHelp home page GithubHelp logo

bt-target's People

Contributors

brentn5 avatar liamdormon avatar meta-hub avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

bt-target's Issues

We noticed an error

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

Dynamic options

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,

Help

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",
},
},

Add remove target function (enhancement)

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. :--)

some props not responded

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.

Wont work with for "" in pairs "".

Wont work when entering the server for first time if not using normal coords.
Screenshot_1
But if i put the exact coords it works well... does anyone know why?

Wont work if i change Wait time, is not about that, i tried everything.

error to bouns

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

Issue with event

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

No license.

What kind of license is this released under? Could you clarify?

[Bug] Polyzone not working throws an error

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.

161775716154a868a8e7b7d40e8fa55c2bcb75b1c8

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
		})

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.