Client Exports
local lib = exports["jl_lib"]:GetLib()
-- Add Blips
local blipData = {
coords = vector3(100.0, 200.0, 300.0),
sprite = 1,
colour = 3,
label = "My Blip"
}
local blipId = lib.AddBlip(blipData)
-- Get Blips
local getBlip = lib.GetBlip(blipId)
print(getBlip.label)
-- Remove Blip
lib.RemoveBlip(blipId)
-- Get Entites
local entityData = lib.GetEntities({"ped", "vehicle"})
if entityData.success then
for _, vehicle in pairs(entityData.entities.vehicle) do
print("Found vehicle with ID: ", vehicle)
end
end
Last updated