Functions/Player/Shared/getDarkRPVar

From Official DarkRP Wiki
Revision as of 17:43, 19 May 2018 by Sir Klutch (talk | contribs) (List of DarkRP Variables (To be put in getDarkRPVar( " " ) ))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Function
Function name Player:getDarkRPVar(string var)
Description:
Get the value of a DarkRPVar, which is shared between server and client.
Returns: any value
Part of Library: Player
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Functions/Player/Shared/getDarkRPVar]Player:getDarkRPVar[/url][/b]

Function parameters

  1. var (string)
  2. The name of the variable.


Function return values

  1. value (any)
  2. The value of the DarkRP var.


List of DarkRP Variables (To be put in getDarkRPVar( " " ) )

  • AFK
  • AFKDemoted
  • money
  • salary
  • rpname
  • job
  • HasGunlicense
  • Arrested
  • wanted
  • wantedReason
  • agenda
  • zombieToggle
  • zPoints
  • hasHit
  • hitTarget
  • hitPrice
  • lastHitTime
  • Energy