PLAYER/SetupDataTables

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m (Removed deprecated notification)
Line 9: Line 9:
 
{{Example
 
{{Example
 
|Description=Example usage.
 
|Description=Example usage.
|Code=function PLAYER:SetupDataTables()
+
|Code=local PLAYER = FindMetaTable( "Player" )
 +
 
 +
function PLAYER:SetupDataTables()
 
self.Player:NetworkVar( "Int", 0, "Money" )
 
self.Player:NetworkVar( "Int", 0, "Money" )
 
end
 
end
 
}}
 
}}

Revision as of 15:01, 11 November 2019

 PLAYER:SetupDataTables( )

Description

Setup the network table accessors.

Examples

Example

Example usage.

local PLAYER = FindMetaTable( "Player" )

function PLAYER:SetupDataTables()
	self.Player:NetworkVar( "Int", 0, "Money" )
end


Personal tools
Navigation