mur4i / bl_sprites

Interactive and smooth indicators for your players in FiveM.

Home Page:https://www.youtube.com/watch?v=vmtox_rdTOE

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bl_sprites

Description

Interactive World Sprites that provide players extra info.

Dependencies:

Example

local CreateSprite = exports.bl_sprites

local test = CreateSprite:sprite({
    coords = GetEntityCoords(PlayerPedId()),
    key = "R",
    shape = "circle",
    spriteIndicator = true,
    colour = {255, 0, 0, 255},
    distance = 5.0,
    scale = 0.05,
    canInteract = function()
        return true
    end,
    nearby = function()
        print('nearby')
    end,
    onEnter = function()
        print('onEnter')
    end,
    onExit = function()
        print('onExit')
    end,
})

-- test is an sprite class that have options data and the 2 below function 

Wait(2000)
test:updateTargetData('scale', 0.08)

Wait(2000)
test:removeSprite()

About

Interactive and smooth indicators for your players in FiveM.

https://www.youtube.com/watch?v=vmtox_rdTOE

License:GNU General Public License v3.0


Languages

Language:Lua 100.0%