99 online 3 members  + Join RP Base  +
FreeScriptQBoxQBCore

slrn_groups

by solareon  ·  version 2.2.0  ·  updated 3 days ago

No reviews yet

Downloads
0
Reviews
0
Size
1.2 MB
Code check
Checked
Licence
GPL-3.0
Released
Nov 2026

A groups app for the lb-phone resource for FiveM providing qb-phone compatibility

slrn_groups
slrn_groups
A group app for lb-phone the provides qb-phone compatible exports. This should work with most resources that expect a qb-phone style group.

QBOX/QB/ESX/ND/OX supported with bridge
Red40 Development
Like this resource and want to support further development? Checkout my store Red40 Development
Preview
Light Mode | Dark Mode

|
Installation
Download the release version and copy to your server.
Customizing and building from source
Download the latest commit and navigate to the ui folder
 copy
pnpm i

Then to preview the UI. You can also switch the UI path in the app registration (switch the commented lines) and then the game will display the preview running from vite.
 copy
pnpm start

Or to build for production
 copy
pnpm build

Support Credits Dependencies Exports (server side only)
Both exports.slrn_groups and exports['qb-phone'] are supported.
Utility ExportsNotifyGroup
This export is used to notify the entire group about specific objectives or events. These are typically ox_lib notifications
PARAMETERS
  • groupID (string): The identifier of the group.
  • message (string): The message to be sent to the group.
  • notifyType (string): The type of notification.
USAGE
 copy
local group = exports.slrn_groups:GetGroupByMembers(source)
exports.slrn_groups:NotifyGroup(groupID, 'A message', 'success')

pNotifyGroup
This export is used to notify the entire group about a specific objective, utilizing the built-in LB-Phone notification type.
PARAMETERS
  • group (string): The identifier of the group.
  • header (string): The header/title of the notification.
  • msg (string): The detailed message for the notification.
USAGE
 copy
local group = exports.slrn_groups:GetGroupByMembers(source)
local header = "Garbage Job"
local message = "Head to the location marked and pick up trash!"
exports.slrn_groups:pNotifyGroup(groupID, header, msg)

CreateBlipForGroup
An export to make blips that sync across group members.

Find all the FiveM related blip data you will need for this here:
https://docs.fivem.net/docs/game-references/blips/
PARAMETERS
  • group (string): The identifier of the group.
  • name (string): The name/identifier for the blip.
  • data (table): The data table containing blip details.
USAGE
Do not copy paste this as the blip table might be broken only this as a reference

 copy
local group = exports.slrn_groups:GetGroupByMembers(src)
local blip = {
    -- NOTE YOU CAN ONLY USE ONE OF ENTITY NETID RADIUS AS THEY ALL DO THE SAME
    -- Picking none of these 3 will make it a normal blip by default
    entity = 9421, -- Use this if you have an entity spawned server side
    netId = 9421, -- Use this if you have a entity server side and you have the netId
    radius = 200, -- How big do you want the radius of the blip to be

    coords = vector4(231, 244, 92, 1.41) -- Just the coords for the blip
    color = 49, -- just a red colour
    alpha = 255, -- This makes the blip kinda see through if u lower it
    sprite = 57, -- Just a circle icon,
    scale = 0.7, -- How big do u want the blip to be?
    label = "Garbage Route", -- The label for the blip

    -- Route stuff --
    route = true, -- Will set a route for the job (Note a route is not a waypoint they cant remove it)
    routeColor = 49, -- just a red to finish off the routeColor
}
exports.slrn_groups:CreateBlipForGroup(group, "Garbage", blip)

RemoveBlipForGroup
An export to remove blips across all group members
PARAMETERS
  • group (string): The identifier of the group.
  • name (string): The name/identifier for the blip to be removed.
USAGE
 copy
local group = exports['qb-phone']:GetGroupByMembers(src)
exports.slrn_groups:RemoveBlipForGroup(group, "Garbage")

GetGroupByMembers
An export to get the players current group. If the player has no group it will return nil.
PARAMETERS
  • src (number): The source ID of the player.
USAGE
 copy
local group = exports.slrn_groups:GetGroupByMembers(src)
print(group) -- Will either print the group ID or print nil.

getGroupMembers
An export to get all the group members source ID
PARAMETERS
  • group (string): The identifier of the group.
USAGE
 copy
local group = exports.slrn_groups:GetGroupByMembers(src)
local members = exports.slrn_groups:getGroupMembers(groupID)
print(json.encode(members)) -- Will print the table for the group members

getGroupSize
An export to ge the current group size.\
This can be used if u want players to be a specific number to start a job.
PARAMETERS
  • group (string): The identifier of the group.
USAGE
 copy
local group = exports.slrn_groups:GetGroupByMembers(src)
local size = exports.slrn_groups:getGroupSize(groupID)
print(size) -- Will print how many people are in the group

GetGroupLeader
An export to get the current groups leader.\
This can be used to make sure only the group leader can start a job.
PARAMETERS
  • group (string): The identifier of the group.
USAGE
 copy
local group = exports.slrn_groups:GetGroupByMembers(src)
local leader = exports.slrn_groups:GetGroupLeader(group)
print(leader) -- Will print the group leader source ID

DestroyGroup
An export to destroy a group.
PARAMETERS
  • group (string): The identifier of the group.
USAGE
```lua copy
local group = exports.slrn_groups:GetGroupByMembers(src)
exports.s

…