Skip to content

renzuzu/renzu_drawmarkerui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

renzu_drawmarkerui

WIP marker NUI (not ready for production yet)

image image

Sample Usage Server:

RegisterCommand("pdhelp", function(source , args, rawCommand)
    local source = source
    local t = {
        job = 'police',
        coord = GetEntityCoords(GetPlayerPed(source)),
        dist = tonumber(args[2]) or 200.0,
        label = args[1],
        fa = 'hands-helping',
        blip = Config.sprite, -- blip sprite
        sender = GetPlayerName(source),
        timeout = Config.timer
    }
    TriggerClientEvent('AddNuiMarker',-1,t)
end, false)
/pdhelp HELP

Sample Usage Client

local source = source
    local t = {
        coord = vector3(-207.78691101074,-1319.1196289062,30.890409469604),
        dist = 40.0,
        label = 'Upgrade Section 3',
        fa = 'car',
        timeout = Config.timer -- or uncomment or change this to whatever number eg. 300 = 5minutes, when timer expire the marker dissapear
    }
    TriggerEvent('AddNuiMarker',t)

Disclaimer

About

WIP marker NUI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published