OnNPCNetworkUpdatePropertyValue: 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|OnNPCNetworkUpdatePropertyValue(vehicle, PropertyName...")
 
No edit summary
(One intermediate revision by the same user not shown)
Line 18: Line 18:


{{RelatedFunctions}}
{{RelatedFunctions}}
*[[OnPlayerNetworkUpdatePropertyValue]]
{{NetworkClientEvents}}
*[[OnVehicleNetworkUpdatePropertyValue]]
*[[OnNPCNetworkUpdatePropertyValue]]
*[[OnText3DNetworkUpdatePropertyValue]]
*[[OnPickupNetworkUpdatePropertyValue]]

Revision as of 22:43, 26 January 2020

OnNPCNetworkUpdatePropertyValue

Type: Function
Context: Client
Introduced: v1.0

Description

Called when a property value is updated from the network.

Syntax

OnNPCNetworkUpdatePropertyValue(vehicle, PropertyName, PropertyValue)

Parameters

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


Example

AddEvent("OnNPCNetworkUpdatePropertyValue", function(npcId, propertyName, propertyValue)
end)

See also