PLAYER/SetupDataTables

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Undo revision 32869 by Pilot2chasse (talk) This isn't how the player class system works)
 
Line 9: Line 9:
 
{{Example
 
{{Example
 
|Description=Example usage.
 
|Description=Example usage.
|Code=local PLAYER = FindMetaTable( "Player" )
+
|Code=function PLAYER:SetupDataTables()
 
+
function PLAYER:SetupDataTables()
+
 
self.Player:NetworkVar( "Int", 0, "Money" )
 
self.Player:NetworkVar( "Int", 0, "Money" )
 
end
 
end
 
}}
 
}}

Latest revision as of 23:42, 11 November 2019

 PLAYER:SetupDataTables( )

Description

Setup the network table accessors.

Examples

Example

Example usage.

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


Personal tools
Navigation