Browsing StarfallEx's section
โ† Back to ACE
Back to StarfallEx

SFEX.darkrp.getDarkRPVar

S๐Ÿท๏ธ Darkrp

Part of StarfallEx namespace

๐Ÿ”— External
darkrp.getDarkRPVar(ply, k)
View on GitHub|lua/starfall/libs_sh/darkrp2.lua:1015
๐Ÿ“‹ Has LDoc๐Ÿ‘๏ธ 0 viewsUpdated 2 months ago

Description

Get the value of a DarkRPVar, which is shared between server and client. Case-sensitive. Possible variables include (but are not limited to): AFK, AFKDemoted, money, salaryRL, rpname, job, HasGunlicense, Arrested, wanted, wantedReason, agenda, zombieToggle, hitTarget, hitPrice, lastHitTime, Energy For money specifically, you may optionally use Player:getMoney instead. Some variables may be blacklisted so that you can't read their value.

Parameters

NameTypeDescription
plyPlayerThe player
varstringThe name of the variable.

Returns

TypeDescription
anyThe value of the DarkRP var.

Examples

No examples available.

Used In

No usages found in the codebase.