Client Exports

Here you will find all the useful exports for this asset, please read each step and example carefully to better understand how it works, we do not recommend using these if you are not an experienced developer.


GetGang

Basic export that will return the information of your player's gang, values:

  • name

  • grade

-- You can ask for the value name or grade
exports['qs-gangs']:GetGang()

An example of using this system would be the following.

RegisterCommand('gangTest', function()
	-- Here we check if it is a gang and if its gang name is different from none
	if exports['qs-gangs']:GetGang() and exports['qs-gangs']:GetGang().name ~= 'none' then
		print("I'm from a gang, yey!")
	end
end, false)

GetGangLabel

Export that returns the label of your gang.

-- Return the label of your gang, example 'Ballas'
exports['qs-gangs']:GetGangLabel()

GetGangColor

Returns the RGB values of your gang color.

-- Returns the RGB color of the gang
exports['qs-gangs']:GetGangColor()

inDrag

Export that allows us to check if you are dragging an injured player, useful for blocking certain menus or actions in external assets.

-- Check to see if you are dragging an injured player
exports['qs-gangs']:inDrag()

Last updated