NX CreativeNX CreativeDocs
Scriptsnx_phone

Changelog

Version history for nx_phone.

0.0.6 (2026-10-13)

This version adds a public API, so other resources can control the phone, answer phone numbers and react to messages and calls.

Added

  • Server exports for phone control: ClosePhone, LockPhone, SetPhoneDisabled and IsPhoneDisabled. A disable is held per resource, so two scripts can disable the same phone without undoing each other.
  • Server lookups: GetSourceFromNumber, GetNumberFromSource and IsInCall.
  • SendMessage, to text from a player's SIM or from a hotline, rate limited per calling resource by the new Config.Server.RateLimits.ApiMessage in config_server.lua.
  • Hotlines (RegisterHotline, RemoveHotline): a number your resource answers, with handlers for calls and texts.
  • Call control: GetCall, EndCall, and SetServiceRouter to decide who rings for a service line.
  • Number management: GiveSim, SuspendNumber, ReclaimNumber and SetVanityNumber.
  • Client exports: OpenPhone, ClosePhone, TogglePhone, IsPhoneOpen, SetPhoneDisabled, IsPhoneDisabled, RegisterCanOpen, RemoveCanOpen, IsInCall, GetOpenPhoneId and IsPhoneUnlocked.
  • Server events: nx_phone:server:messageSent, nx_phone:server:messageToVirtual, nx_phone:server:notificationSent, nx_phone:server:callStarted, nx_phone:server:callAnswered and nx_phone:server:callEnded.
  • Service lines take minGrade (only that job grade and up rings) and requireDuty = false (off-duty players ring too) in Config.Calls.Services.

Changed

  • More of the integration code is readable and editable: the framework identity readers in bridge/identity.lua, the item hooks, the boot self-check, the payphone list, and the client glue for sounds, the held phone and the Home and Garage relays.

Versions before 0.0.6 are not documented here.

NX Docs