OnPlayerNetworkUpdatePropertyValue: Difference between revisions

From Onset Developer Wiki
Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|Called when a property value is updated from the network.}} {{FuncSyntax|OnPlayerNetworkUpdatePropertyValue(player, PropertyNa..."
 
Dadadah (talk | contribs)
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 13: Line 13:
== Example ==
== Example ==
<syntaxhighlight lang="Lua>
<syntaxhighlight lang="Lua>
AddEvent("OnPlayerNetworkUpdatePropertyValue", function(playerid, propertyName, propertyValue)
end)
</syntaxhighlight>
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
{{ClientEvents}}
{{NetworkClientEvents}}

Latest revision as of 22:43, 26 January 2020

OnPlayerNetworkUpdatePropertyValue

Type: Function
Context: Client
Introduced: v1.0

Description

Called when a property value is updated from the network.

Syntax

OnPlayerNetworkUpdatePropertyValue(player, PropertyName, PropertyValue)

Parameters

  • player
    The player identifier.
  • PropertyName
    The name of the property that has changed.
  • PropertyValue
    The new property value.


Example

AddEvent("OnPlayerNetworkUpdatePropertyValue", function(playerid, propertyName, propertyValue)
end)

See also