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,SetPhoneDisabledandIsPhoneDisabled. A disable is held per resource, so two scripts can disable the same phone without undoing each other. - Server lookups:
GetSourceFromNumber,GetNumberFromSourceandIsInCall. SendMessage, to text from a player's SIM or from a hotline, rate limited per calling resource by the newConfig.Server.RateLimits.ApiMessageinconfig_server.lua.- Hotlines (
RegisterHotline,RemoveHotline): a number your resource answers, with handlers for calls and texts. - Call control:
GetCall,EndCall, andSetServiceRouterto decide who rings for a service line. - Number management:
GiveSim,SuspendNumber,ReclaimNumberandSetVanityNumber. - Client exports:
OpenPhone,ClosePhone,TogglePhone,IsPhoneOpen,SetPhoneDisabled,IsPhoneDisabled,RegisterCanOpen,RemoveCanOpen,IsInCall,GetOpenPhoneIdandIsPhoneUnlocked. - Server events:
nx_phone:server:messageSent,nx_phone:server:messageToVirtual,nx_phone:server:notificationSent,nx_phone:server:callStarted,nx_phone:server:callAnsweredandnx_phone:server:callEnded. - Service lines take
minGrade(only that job grade and up rings) andrequireDuty = false(off-duty players ring too) inConfig.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.