NX CreativeNX CreativeDocs
Scriptsnx_phone

Commands

Player commands, the admin command and the default keybinds of nx_phone.

Players mostly open the phone with its keybind or by using the phone item. The commands below can each be renamed or turned off in config.lua.

Player commands

/phoneeveryone

Open the phone you carry, or put it away if it is open. Rename it with Config.Command, or set '' to remove it.

/dropphoneeveryone

Put the phone you carry on the ground. Anyone can pick it up unless Config.Drop.AnyoneCanPickUp is false. Not available in a vehicle. Rename it with Config.Drop.Command; it needs Config.Drop.Enabled.

/placephoneeveryone

Lay your phone on the surface in front of you, where it shows StandBy and people nearby can read it. Rename it with Config.Screen.StandBy.Command; it needs Config.Screen.StandBy.Enabled and Config.Drop.Enabled.

Admin command

/yapp_verify <handle> [tier]command.yapp_verify ACE or server console

Give a Yapp profile a verified badge, or remove it. The command is registered as restricted, so an in-game caller needs the ACE. The YappSetVerified export does the same from code.

Arguments

  • handlestring— The Yapp profile handle, without the @.
  • tier?string— 'blue' (default), 'gold', or 'none' to remove the badge.
# server.cfg
add_ace group.admin command.yapp_verify allow
yapp_verify lspd gold
yapp_verify someone none

Keybinds

Both keys are registered with FiveM, so players can rebind them in Settings, Key Bindings, FiveM.

Default keySettingAction
F1Config.OpenKeyOpen the phone, or put it away. Also takes an incoming call or a notification that has risen on a put-away phone.
Left AltConfig.Camera.FocusKeyWith the phone open, switch between using the cursor and walking around. In the camera, switch between aiming and the cursor.

With the phone open, Esc also puts it away. Set either setting to '' to remove that keybind.

NX Docs