Public phones
Public phone booths let players without a phone item make calls from fixed locations around the map. They appear as blips on the minimap and use ox_target for interaction.
Configuration
Config.PublicPhonesEnabled = true -- enable/disable the entire system
Config.FixePhoneTarget = {
resource = "ox_target", -- target resource to use
distance = 2.0, -- interaction distance in metres
}
Config.FixePhoneBlips = {
enabled = true,
sprite = 618, -- GTA blip sprite ID
color = 0,
scale = 0.8,
label = "Public Phone",
}Default locations
8 phone booths are pre-configured across the map:
| Name | Area |
|---|---|
| Plaza | Downtown Los Santos |
| Central | Pillbox Hill |
| Sandy | Sandy Shores |
| Del Perro | Del Perro Beach |
| Vinewood | Vinewood Hills |
| Paleto | Paleto Bay |
| Rockford | Rockford Hills |
| Additional | Configurable per server |
Add or remove entries in Config.PublicPhones:
Config.PublicPhones = {
{
id = "plaza",
label = "Plaza Phone Booth",
coords = vector4(100.0, -900.0, 29.0, 270.0),
},
{
id = "sandy",
label = "Sandy Shores Booth",
coords = vector4(1960.0, 3740.0, 32.0, 90.0),
},
-- add more as needed
}Target & blips
ox_target is started before quanticPhone in your server.cfg.Players approach a phone booth and interact with it via the target zone. A temporary phone session opens, allowing them to call any number. The session closes when they walk away or end the call.
Map blips are automatically placed at each booth when Config.FixePhoneBlips.enabled = true. The sprite value accepts any GTA V blip sprite ID.
Exports
SetPublicPhoneSystemEnabled(enabled)ServerEnable or disable public phones at runtime (e.g. during server events).
exports.quanticPhone:SetPublicPhoneSystemEnabled(false) -- disable
exports.quanticPhone:SetPublicPhoneSystemEnabled(true) -- re-enableGetPublicPhoneSystemEnabled() → booleanServerReturns whether the public phone system is currently active.
local enabled = exports.quanticPhone:GetPublicPhoneSystemEnabled()
print("Public phones active:", enabled)