ExtraNumber Data

Description

Used to create a scriptable phone number


Parameters

delay [number]

Length of call in seconds. Also a delay before running linked function.

icon [table] or [string]

Sets icon to be used inside contact list. You can set string, containing path to the materia directly, without using table, if you don't need icon to ignore button highlight.

Table parameters - [string path to the material, boolean ignore icon highlight]

giphy.gif

nicename [string]

Name to display inside contact list

addtocontacts [boolean]

Add this number to contact list or not. If set to false, this number can be called only manually and can't be saved by player inside the contact list.

sound [table]

Sound to play when number called.

Table parameters - [string path to the sound or url, boolean use url playback instead of local assets]

func [string]

Index to find function inside ExtraNumbersFunc table. This function automatically runs on call end. If call was interrupted by player this function will be ignored. If this function returns true value, phone will be closed on call end. Function calls client side.

delay_func [string]

Index to find function inside ExtraNumbersFunc table. This function automatically runs on call start. If this function returns true value, number will be unavailable. Function calls server side with Player caller argument.