meta-hub / meta_target

A complete third eye solution for FiveM and RedM, aiming to proving all solutions from fivem-target, bt-target and qtarget under one resource.
21 stars 15 forks source link

new features #36

Closed BaziForYou closed 2 years ago

BaziForYou commented 2 years ago
BaziForYou commented 2 years ago

example canShow

local mTarget = exports["meta_target"]
local PaperStandModels = {
    "prop_news_disp_06a",
    "prop_news_disp_05a",
    "prop_news_disp_01a",
    "prop_news_disp_02a",
    "prop_news_disp_02a_s",
    "prop_news_disp_02c",
    "prop_news_disp_02e",
    "prop_news_disp_03c",
    "prop_news_disp_02b",
    "prop_news_disp_02d",
    "prop_news_disp_03a",
}
mTarget:addModels("NewsStand","News Stand","fas fa-newspaper",PaperStandModels,1.5,
    function(target,option,entity)
        TriggerServerEvent("newspaper:buyNewsPaper")
    end,
    {
        {
            name = "buy_newspaper",
            label = "Buy NewsPaper"
        }
    },
    false,false,
    function(target,pos,ent,endPos,modelHash,isNetworked,netId,targetDist,entityType)
        if not HasEntityBeenDamagedByAnyVehicle(ent) then
            return true
        else
            return false
        end
    end
)
Taavi-AU commented 2 years ago

Just having a read through all this, have you tested to make sure this has worked perfectly?

BaziForYou commented 2 years ago

Just having a read through all this, have you tested to make sure this has worked perfectly?

yes all tested and working and that example is already in my server