Scripting/Client/Classes/Element_data_v0_5_3/onClientElementDataChange

Fires when the server sets or removes a synced value. element is the Player / Vehicle / Object / Pickup / Sphere (null for blips and traffic entities, which have no client class); read the new value with element.GetElementData(key) (null = removed).

Syntax

onClientElementDataChange(element, key)

Arguments

Example

function onScriptLoad()
{
	onClientElementDataChange( 0, "X" );
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Element data (v0.5.3+)

Categories: Client methods | Element data (v0.5.3+)