Client
This page lists all the available client-side events and exports.
Exports (General)
List of general exports.
GetPlayerGang
This export returns the gang the specified player is a member of.
Example code
exports['rcore_gangs']:GetPlayerGang()Return:
gang?:
tableid:
numbernumber: The id of the gang
tag:
stringstring: The gang tag
name:
stringstring: The gang name
color:
stringstring: The gang color
identifier:
numberorstringnumber: The identifier of the gang leaderstring: The identifier of the gang leader
members:
table[]table: The list of all gang membersname:
stringstring: The ingame character name of the gang member
rank:
stringstring: The rank of the gang member
access:
booleanboolean: Whether or not the gang member has priviliged rank
identifier:
numberorstringnumber: The identifier of the gang memberstring: The identifier of the gang member
vehicles:
table[]table: The list of all gang vehiclesmodel:
numbernumber: The model hash of the gang vehicle
color:
numbernumber: The color index of the gang vehicle
garage?:
vec3vec3: The position of the gang garage
storage?:
vec3vec3: The position of the gang storage
rank:
stringstring: The rank of the specified player in the gang
access:
booleanboolean: Whether or not the specified player has priviliged rank
superaccess:
booleanboolean: Whether or not the specified player is the leader of the gang
GetZoneAtPosition
This export returns the gang zone located in the specified position.
Example code
exports['rcore_gangs']:GetZoneAtPosition(position)Parameter:
position:
vec3vec3: The position of the zone
Return:
zone?:
tablename:
stringstring: The name of the zone
label:
stringstring: The label of the zone
neighbors:
table[]table: The list of all the neighboring zones
drugPreference:
tabletable: The multipliers for each drug category in the zoneCATEGORY_LOW:
number:number: The multiplier for low drug category
CATEGORY_MED:
number:number: The multiplier for medium drug category
CATEGORY_HIGH:
number:number: The multiplier for high drug category
IsPlayerBagged
This export returns whether the specified player has paper bag on or not.
Example code
exports['rcore_gangs']:IsPlayerBagged(src)Parameter:
src:
numbernumber: The source of the player (server identifier)
Return:
check:
booleanboolean: Whether or not the player has paper bag on
IsPlayerRestrained
This export returns whether the specified player has zip ties on or not.
Example code
exports['rcore_gangs']:IsPlayerRestrained(src)Parameter:
src:
numbernumber: The source of the player (server identifier)
Return:
check:
booleanboolean: Whether or not the player has zip ties on
IsPlayerEscorted
This export returns whether the specified player is being escorted or not.
Example code
exports['rcore_gangs']:IsPlayerEscorted(src)Parameter:
src:
numbernumber: The source of the player (server identifier)
Return:
check:
booleanboolean: Whether or not the player is being escorted
Last updated
Was this helpful?