All resources

rsg-telephone — Developer & Server-Owner Documentation#

Reference for rsg-telephone 3.1.1 on RSG-Core (RedM). For installation, features and the config table, see README.md.

Contents#

  1. Architecture
  2. Data formats
  3. Exports
  4. Events and callbacks
  5. NUI callbacks
  6. Integration examples
  7. Persistence and saving
  8. Security model
  9. Database schema
  10. Server-owner how-tos
  11. Troubleshooting
  12. Support

Architecture#

FilePurpose
fxmanifest.luaResource metadata, dependencies, script order, NUI page and locale files. Version 3.1.1.
shared/config.luaAll tunable options. Runs after @rsg-core/shared/locale.lua, so model labels can use locale(). Ends with guards that clamp invalid values.
client/client.luaProp streaming, interior room assignment, rsg-target options, NUI phone screen, bell/audio positioning, Mumble voice line, placement through rsg-gizmo, admin panel NUI.
server/server.luaAuthoritative phone registry, database load/save, payphone money, call lifecycle and watchdog, job checks, ownership, admin callbacks, commands.
server/versionchecker.luaOptional GitHub version check. Prints the result to the server console. No gameplay effect.
html/index.htmlNUI markup: dialler, directory, payphone coin slot, placement form, confirm dialog and admin panel.
html/style.cssLeather-and-gold RDR2 styling for all NUI screens.
html/script.jsNUI logic, synthetic audio (bell, ringback, dial clicks), message bridge. No network access.
locales/*.jsonFlat JSON locale tables loaded by rsg-core. 106 keys in every file.
installation/install.sqlManual table creation for owners who disable Config.AutoDatabase.
installation/shared_items.luaThe telephone item entry for rsg-core/shared/items.lua. Not a standalone Lua file.

Runtime flow:

  1. On start the server creates/upgrades rsg_telephones, loads every row into either Phones (placed) or Stored (picked up), then broadcasts the placed list.
  2. Each client keeps a copy of the placed list, streams props within Config.SpawnDistance, and attaches rsg-target options to each entity.
  3. All call, money, ownership, job and admin decisions are made on the server. The client copy is only for display and interaction prompts.
  4. Every registry mutation is written to MySQL before the in-memory state changes and before clients are notified.

Data formats#

Item definition#

telephone = {
    name = 'telephone', label = 'Telephone', weight = 1000, type = 'item',
    image = 'telephone.png', unique = true, useable = true, shouldClose = true,
    description = 'A telephone you can install anywhere', category = 'tools',
}

Item metadata#

A placed-then-picked-up phone stores its identity on the inventory item:

{
    phone_id = 12,        -- rsg_telephones.id (number)
    number   = '4821',    -- reserved phone number
    label    = 'My Phone',
}

unique = true keeps this metadata on an individual item. When the item is used again, the server verifies the item is still in the same slot and still carries the same phone_id.

Public phone object (client copy)#

Sent by syncPhones, addPhone and updatePhone:

{
    id      = 12,
    number  = '4821',
    label   = 'My Phone',
    model   = 's_phonewall01x',
    x = 123.4, y = -567.8, z = 20.1,
    heading = 90.0,
    room    = 0,             -- interior room key; 0 = derive from the player when possible
    job     = 'medic' or nil,
    owner   = 'citizenid' or nil,
    listed  = true,
}

The client caches p.pos = vector3(x, y, z) for the streaming and bell loops.

Server call object#

Calls[callId]:

{
    id        = 1,
    caller    = 3,           -- server source at dial time
    answerer  = 7 or nil,
    fromPhone = 12,          -- rsg_telephones.id
    toPhone   = 18,
    state     = 'ringing' or 'active',
    started   = 1730000000,  -- os.time(), reset when answered
    deposit   = 50,          -- cents inserted (nil for free calls)
    spent     = 10,          -- cents charged so far
    payer     = 'citizenid', -- who gets the refund (nil for free calls)
    paidUntil = 1730000060,  -- os.time() of the next minute charge
}

Other server tables#

TableShapeMeaning
Phones[id] = phonePlaced phones, authoritative copy. phone.coords is a vector3.
Stored[id] = phonePicked-up phones. Keeps the number reserved and the row in the DB (stored = 1).
PhoneCall[phoneId] = callIdMarks a phone as ringing/in use.
PlayerCall[src] = callIdMarks a player as ringing/in a call.
Cooldown[src] = os.time()Last dial attempt.
PendingPlace[src] = { slot, storedId, t }Item placement issued by CreateUseableItem; expires after 300 seconds.

Config structures#

Config.Models = {
    { value = 's_phonewall01x',    label = locale('model_wall') },
    { value = 'p_phoneantique01x', label = locale('model_desk') },
}

Only models listed here are accepted by the server for new phones. Model changes for existing phones are applied by the admin panel.


Exports#

This resource does not expose any exports of its own. External resources should use the events and callbacks below, or query the database.

Exports consumed by rsg-telephone:

ResourceExportCalled fromReturns
rsg-gizmoPlace(model, opts)client{ coords = vector3, rotation = vector3, heading = number } or nil
rsg-gizmoIsPlacementValid(src, coords, maxDistance)serverboolean
rsg-gizmoSanitiseRotation(rot)serversafe vector3
rsg-inventoryCanAddItem(src, name, amount)serverboolean
rsg-inventoryAddItem(src, name, amount, info, slot, reason)serverboolean
rsg-inventoryRemoveItem(src, name, amount, slot, reason)serverboolean
rsg-inventoryGetItemBySlot(src, slot)serveritem table or nil
rsg-targetaddLocalEntity(entity, options)clientattaches interaction options to a local entity
rsg-targetremoveLocalEntity(entity)clientremoves those options

rsg-core APIs used: GetCoreObject, Functions.Notify, Functions.GetPlayer, Functions.GetPlayerByCitizenId, Functions.GetPlayerJobs, Functions.GetJobDefinition, Functions.HasPermission, Functions.CreateCallback, Functions.CreateUseableItem, Functions.AwaitCallback, Functions.TriggerCallback, Commands.Add.


Events and callbacks#

Server → client events#

These are triggered by the server. They are not a security boundary; the server never trusts a client reply.

EventArgumentsPurpose
rsg-telephone:client:syncPhoneslist (array of public phone objects)Replace the client's phone list.
rsg-telephone:client:addPhonephoneAdd or replace one phone.
rsg-telephone:client:updatePhonephoneUpdate a phone; the client respawns the prop if the model changed.
rsg-telephone:client:removePhoneidRemove a phone and its blip.
rsg-telephone:client:setRingingphoneId, stateBroadcast bell on/off. state = false stops the bell for everyone.
rsg-telephone:client:startVoicepartnerServerIdOpen the private Mumble line to that player.
rsg-telephone:client:creditleftCents, costCentsUpdate the payphone credit display.
rsg-telephone:client:callConnected{ label, number }Tell the caller the remote phone answered.
rsg-telephone:client:callEndedreasonTextStop voice and show the end reason.
rsg-telephone:client:openAdminnoneOpen the Telephone Exchange (permission is re-checked by every callback).
rsg-telephone:client:startPlacementoptsOpen the placement form. opts.item = true and opts.preset = { label, model, number } for a picked-up phone.

Client → server events#

EventPurpose
rsg-telephone:server:hangUpEnd the sender's current call. No arguments.
rsg-telephone:server:cancelPlaceClear the sender's pending item placement. No arguments.

rsg-core callbacks#

All callbacks are registered on the server and reached with TriggerCallback / AwaitCallback. The first return value is success; the second is a payload or a locale error message.

CallbackArgumentsReturns
rsg-telephone:server:getPhonesnonephoneList, ringingIds (two values)
rsg-telephone:server:myJobsnonearray of job names/types held by the character
rsg-telephone:server:getDirectorynone{ entries = { { id, label, number, listed } }, admin = boolean }
rsg-telephone:server:setListedid, listedtrue, entries on success; false, error
rsg-telephone:server:createPhonedatatrue, number on success; false, error
rsg-telephone:server:pickupPhoneidtrue on success; false, error
rsg-telephone:server:ownerUpdateid, datatrue on success; false, error
rsg-telephone:server:adminListnone{ phones, calls, models }; false without permission
rsg-telephone:server:adminUpdateid, datatrue, adminList; false, error
rsg-telephone:server:adminDeleteidtrue, adminList; false, error
rsg-telephone:server:adminEndCallphoneIdtrue, adminList; false
rsg-telephone:server:startCallphoneId, number, deposittrue, { label, number }; false, error
rsg-telephone:server:answerphoneIdtrue, { label, number }; false, error

createPhone data:

{
    item = false,                 -- true = use the caller's pending item placement
    label = 'Bank Phone',
    model = 's_phonewall01x',     -- must be in Config.Models
    number = '1234',              -- optional; blank = generate
    listed = true,
    job = 'medic',                -- optional; ''/nil = anyone
    x = 123.4, y = -567.8, z = 20.1,
    heading = 90.0,
    rotation = vector3,           -- optional; sanitised server-side
    room = 0,
}

adminUpdate data:

{ label = 'Bank Phone', number = '1234', model = 's_phonewall01x', job = 'medic', listed = true }

startCall deposit is in dollars as a number; the server converts to whole cents and rejects non-finite values.


NUI callbacks#

These are internal to html/script.js and handled in client/client.lua. They are not intended for other resources.

CallbackPayloadPurpose
closenoneClose the phone and hang up if in a call.
hangUpnoneEnd the current call.
getDirectorynoneFetch the directory.
setListed{ id, listed }Admin directory show/hide.
dial{ number, deposit }Place a call from the current phone.
placeFormform payload or { cancel = true }Resolve the placement/settings form.
confirmResult{ ok = boolean }Resolve the generic confirm dialog.
adminClosenoneClose the admin panel.
adminRefreshnoneRe-fetch the admin list.
adminSave{ id, label, number, model, job, listed }Save an edited phone.
adminDelete{ id }Delete a phone.
adminEndCall{ id }End the call on a phone.
adminTeleport{ id }Teleport to a placed phone.
adminWaypoint{ id }Set a GPS route to a placed phone.
adminAddnoneClose the panel and open admin placement.

Integration examples#

Open the exchange panel from another admin menu#

-- server
TriggerClientEvent('rsg-telephone:client:openAdmin', src)

Every admin callback re-checks Config.AdminPermission; opening the panel does not grant permission.

Read the number stored on a picked-up phone item#

-- server
local item = exports['rsg-inventory']:GetItemBySlot(src, slot)
local phoneId = item and item.info and tonumber(item.info.phone_id)
local number  = item and item.info and item.info.number

Restrict the nearest phone to a job from another resource#

Use the admin command or update the row directly, then restart the resource so the in-memory registry reloads:

UPDATE rsg_telephones SET job = 'medic' WHERE number = '1234';

The supported in-game path is /phonejob medic, which updates memory and clients immediately.

Hand a phone to another player#

Picked-up phones live on a unique inventory item. Give or trade the item normally; whoever places it becomes the new owner.

Query phones and owners#

SELECT id, number, label, owner, stored, job
FROM rsg_telephones
ORDER BY id;

Persistence and saving#

  • Startup: CREATE TABLE IF NOT EXISTS (when Config.AutoDatabase = true), then information_schema checks add missing room, job, owner, stored, created_by and created_at columns on older tables. All rows are loaded and validated; rows with missing/non-finite coordinates are skipped and logged.
  • Authoritative state: the server's Phones and Stored tables. The client copy is rebuilt from syncPhones and incremental events.
  • Write timing: every mutation writes to MySQL before memory changes and before clients are notified:
    • create phone → INSERT
    • place picked-up phone → UPDATE coordinates/owner and stored = 0
    • pick up phone → UPDATE stored = 1, then inventory add; if the add fails the row and memory are restored
    • owner settings → UPDATE label, listed
    • admin edit → UPDATE label, number, model, job, listed
    • admin delete / /removephone → DELETE
    • directory show/hide → UPDATE listed
    • /phonejob → UPDATE job
  • Call state is not persisted. A restart ends every call; payphone refunds are issued by endCall during onResourceStop.
  • Stored phones stay in the table so their numbers cannot be reused. Deleting a stored phone from the admin panel frees the number; an existing item with that phone_id then places as a new phone.
  • Uniqueness: the number column has a unique index and the server also checks placed + stored phones before inserting.

Security model#

The server never trusts client-supplied coordinates, numbers, money, labels, models or ownership. The following checks are applied:

AreaChecks
Placementrsg-gizmo:IsPlacementValid(src, coords, Config.PlaceDistance); rotation passed through SanitiseRotation; model must be in Config.Models; labels trimmed and capped at 64 characters; numbers are digits only, 2–16 long, checked against placed and stored phones.
Admin actionsEvery admin callback calls HasPermission(src, Config.AdminPermission) again; admin commands pass the permission to RSGCore.Commands.Add. Client-side visibility is never treated as permission.
Item placementCreateUseableItem records the source, slot and stored phone ID; pendingItem verifies the same item is still in that slot within 300 seconds; the item is removed before the DB insert and refunded if the DB write fails.
OwnershippickupPhone and ownerUpdate require the caller's citizenid to match the phone owner, and the player to be near the phone.
Job restrictionThe server recomputes every job name and job type the character holds (GetPlayerJobs + GetJobDefinition); the client cache only hides the interaction.
CallingPhone must exist, caller must be near it, the phone must not be busy, the target must exist and not be busy, the caller must not already be in a call, a cooldown must have elapsed, and job restrictions are re-checked.
Payphone moneyDeposit is converted to whole cents with a finite-number check, clamped between one minute's cost and MaxDeposit, checked against the player's balance, and removed server-side before the call starts. Refunds are calculated from server-side deposit/spent only.
Call watchdogDistance from both phones, maximum call length and payphone credit are enforced every 2 seconds on the server.
NUIThe page only displays data and posts intents. It cannot modify money, items, calls or the registry directly.

Calling scripts must still protect their own systems. rsg-telephone does not authenticate external callers of its events/callbacks beyond the checks listed above, and the client events are only UI notifications.


Database schema#

Table rsg_telephones:

ColumnTypeNotes
idINT NOT NULL AUTO_INCREMENTPrimary key, used as the phone ID.
numberVARCHAR(16) NOT NULLUnique. Digits only, 2–16 characters.
labelVARCHAR(64) NOT NULL DEFAULT 'Telephone'Display name; also the blip name.
modelVARCHAR(64) NOT NULLProp model from Config.Models.
x, y, zDOUBLE NOT NULLWorld coordinates.
headingDOUBLE NOT NULL DEFAULT 0Z rotation in degrees.
listedTINYINT(1) NOT NULL DEFAULT 11 = visible in the directory.
roomBIGINT NOT NULL DEFAULT 0Interior room key; 0 = derive from the player where possible.
jobVARCHAR(64) DEFAULT NULLJob name/type restriction; NULL = anyone.
ownerVARCHAR(64) DEFAULT NULLOwner citizenid for player phones; NULL = admin/public phone.
storedTINYINT(1) NOT NULL DEFAULT 01 = picked up (number reserved, prop not spawned).
created_byVARCHAR(64) DEFAULT NULLCitizenid that created the row (admin or player).
created_atTIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMPCreation time.

Indexes: PRIMARY KEY (id), UNIQUE KEY number (number).

Manual install: set Config.AutoDatabase = false and import installation/install.sql.


Server-owner how-tos#

Add another prop model#

  1. Confirm the model exists in RedM/rdr3 and can be created as an object.
  2. Add it to Config.Models in shared/config.lua:
    { value = 'your_model_name', label = 'Your Label' },
  3. Restart the resource. The model appears in the admin/player prop picker.

Change the payphone price or currency#

Edit Config.Payphone.CostPerMinute and Config.Payphone.MoneyType (cash, bank, gold, bloodmoney). If CostPerMinute is greater than MaxDeposit, the guard raises MaxDeposit to one minute's cost so calls stay possible.

Make every phone free#

Config.Payphone.Enabled = false

Job phones are always free. Player-owned phones are free unless Config.Item.Payphone = true.

Disable player-owned phones#

Config.Item.Enabled = false

The item can stay in the inventory; it simply does nothing.

Disable map blips#

Config.Blip.Enabled = false

Move a phone or change its prop#

Use /phoneadmin → select the phone → edit the prop and save. Changing the model respawns the prop for every player. To move a phone without the panel, update x, y, z and heading in the database and restart the resource.

Free a stored phone's number#

Open /phoneadmin, select the Picked up phone and delete it. The number becomes available; any existing item with that phone_id will place as a brand-new phone.

Reset all phones#

TRUNCATE TABLE rsg_telephones;

Then restart the resource. This also invalidates the metadata on picked-up items.

Back up or move the registry#

-- backup
SELECT * FROM rsg_telephones;

-- restore (after creating the table)
INSERT INTO rsg_telephones
(number, label, model, x, y, z, heading, listed, room, job, owner, stored, created_by)
VALUES ('1234', 'Bank Phone', 's_phonewall01x', 1.0, 2.0, 3.0, 90.0, 1, 0, NULL, NULL, 0, NULL);

Add a locale#

Copy locales/en.json to locales/<code>.json, translate the values, keep every key and %s placeholder, then set setr rsg:locale "<code>".


Troubleshooting#

SymptomLikely cause / fix
No phones appearConfig.AutoDatabase failed and the table is missing, or rows have invalid coordinates (check the server console). Confirm the player is within Config.SpawnDistance.
Props do not render inside a buildingThe phone was placed before room support or with room = 0 and no player in the interior. Re-place it with rsg-gizmo while inside, or set room in the DB.
Cannot target a phonersg-target must be started. Increase Config.UseDistance if needed.
Radio or party voice cuts into callsUpdate rsg-voice to 3.2.0+. The client tells it a call is running with exports['rsg-voice']:SetCallActive(true) while the voice line is open; Config.Priority.Call in rsg-voice decides what is blocked
No voice on callsConfig.Voice.Target conflicts with another voice script; choose a free slot. If using pma-voice, set Config.Voice.DefaultTarget = 1. Check push-to-talk still works while the phone UI is open.
Phone does not ringThe destination must exist, be placed (stored = 0) and not already in a call. Ringing is only heard within Config.RingDistance.
Call ends when walking awayIncrease Config.MaxCallDistance. The server checks distance every 2 seconds.
"Insert at least $X" but the player has moneyThe player needs the configured Config.Payphone.MoneyType (default cash), not just bank money.
"That number is already in use"The number belongs to a placed or picked-up phone. Delete the stored phone in /phoneadmin to free it.
Placement fails immediatelyrsg-gizmo must be started. Check Config.PlaceDistance and whether the surface/water/interior rules allow the spot.
Player placement says the item is missingThe item must still be in the slot it was used from, and the placement must complete within 5 minutes.
Admin panel is empty or commands do nothingThe player lacks Config.AdminPermission. Permissions are checked on the server.
UI shows the wrong languageSet setr rsg:locale "xx" in server.cfg and restart; the locale is loaded through @rsg-core/shared/locale.lua.
Version checker prints an HTTP errorIt needs internet access to GitHub. This does not affect gameplay; remove server/versionchecker.lua from the manifest if unwanted.

Support the Project : https://rexshack.tebex.store/

<!-- BEGIN AUTO-REFERENCE (generated from the code; re-run the generator instead of editing by hand) -->

Technical reference#

Generated from the source of rsg-telephone 3.1.1. Names, arguments and defaults below are read straight from the code.

Dependencies#

rsg-core, rsg-inventory, rsg-target, rsg-gizmo, oxmysql

Database#

Tables: rsg_telephones.

Tables are created automatically on start while Config.AutoDatabase = true (default). Nothing is ever dropped or overwritten. For a manual install set Config.AutoDatabase = false and import installation/install.sql once.

-- shared/config.lua
Config.AutoDatabase = true -- false = import the SQL file yourself

Configuration#

OptionDefaultNotes
Config.ModelstableProp models (both confirmed in rdr3_discoveries objects/object_list.lua)
Config.SpawnDistance75.0props stream in/out around the player
Config.UseDistance2.0rsg-target interaction distance
Config.PlaceDistance6.0rsg-gizmo placement range
Config.AutoDatabasetrueSet to false and import installation/install.sql yourself if you prefer.
Config.Payphonetableunused credit is refunded when the call ends. Unanswered calls are fully refunded.
Config.Enabledtrue
Config.MoneyType'cash'
Config.CostPerMinute0.10
Config.MaxDeposit5.00
Config.Coins{ 0.05, 0.10, 0.25, 1.00 }
Config.WarnSeconds15
Config.Itemtablenumber and settings stored on it) and re-place it anywhere with the same configuration.
Config.Name'telephone'
Config.MaxPerPlayer2
Config.BliptableMap blip on every placed telephone (named after the phone's label)
Config.Sprite'blip_ambient_telegraph'
Config.Scale0.2
Config.MaxCallDistance3.0server: walk further than this from your phone and the call ends
Config.RingDistance25.0how far away other players can hear a phone ringing
Config.RingTimeout30seconds before an unanswered call gives up
Config.MaxCallLength600seconds, 0 = unlimited
Config.CallCooldown5seconds between dial attempts per player
Config.NumberLength4auto-generated numbers have this many digits
Config.VoicetableBuilt-in voice line (Mumble natives, no pma-voice)
Config.Target4
Config.DefaultTarget0
Config.KeepProximitytrue
Config.Volume1.0
Config.Refresh1000
Config.AdminPermission'admin'Who can place / remove phones (rsg-core permission)
Config.Item.MaxPerPlayermath.max(1, math.floor(numberOr(Config.Item.MaxPerPlayer, 2)))
Config.Payphone.CostPerMinutemath.max(0, numberOr(Config.Payphone.CostPerMinute, 0.10))
Config.Payphone.MaxDepositmath.max(0, numberOr(Config.Payphone.MaxDeposit, 5.00))
Config.Payphone.WarnSecondsmath.max(0, math.floor(numberOr(Config.Payphone.WarnSeconds, 15)))
Config.Payphone.Coinscoins
Config.Blip.Scalemath.max(0.01, numberOr(Config.Blip.Scale, 0.2))
Config.Voice.Targetmath.max(1, math.min(30, math.floor(numberOr(Config.Voice.Target, 4)))
Config.Voice.DefaultTargetmath.max(0, math.min(30, math.floor(numberOr(Config.Voice.DefaultTarge
Config.Voice.Volumemath.max(0.0, math.min(1.0, numberOr(Config.Voice.Volume, 1.0)))
Config.Voice.Refreshmath.max(250, math.floor(numberOr(Config.Voice.Refresh, 1000)))

Callbacks#

CallbackSideArgumentsFile
rsg-telephone:server:getPhonesserver_, cbserver/server.lua
rsg-telephone:server:myJobsserversource, cbserver/server.lua
rsg-telephone:server:getDirectoryserversrc, cbserver/server.lua
rsg-telephone:server:setListedserversrc, cb, id, listedserver/server.lua
rsg-telephone:server:createPhoneserversrc, cb, dataserver/server.lua
rsg-telephone:server:pickupPhoneserversrc, cb, idserver/server.lua
rsg-telephone:server:ownerUpdateserversrc, cb, id, dataserver/server.lua
rsg-telephone:server:adminListserversrc, cbserver/server.lua
rsg-telephone:server:adminUpdateserversrc, cb, id, dataserver/server.lua
rsg-telephone:server:adminDeleteserversrc, cb, idserver/server.lua
rsg-telephone:server:adminEndCallserversrc, cb, idserver/server.lua
rsg-telephone:server:startCallserversrc, cb, phoneId, number, depositserver/server.lua
rsg-telephone:server:answerserversrc, cb, phoneIdserver/server.lua
-- client side
RSGCore.Functions.TriggerCallback('rsg-telephone:server:getPhones', function(result)
    -- use result
end)

Events#

Server events can be fired by any client, so every handler re-validates the player, the arguments and any permission, distance or cooldown on the server. Never add a reward to a handler without those checks.

EventSideArgumentsFile
rsg-telephone:client:startVoiceclientpartnerclient/client.lua
rsg-telephone:client:creditclientleft, costclient/client.lua
rsg-telephone:client:callConnectedclientinfoclient/client.lua
rsg-telephone:client:callEndedclientreasonclient/client.lua
rsg-telephone:client:setRingingclientphoneId, stateclient/client.lua
rsg-telephone:client:syncPhonesclient``client/client.lua
rsg-telephone:client:addPhoneclient``client/client.lua
rsg-telephone:client:updatePhoneclientpclient/client.lua
rsg-telephone:client:removePhoneclientidclient/client.lua
RSGCore:Client:OnPlayerLoadedclient``client/client.lua
RSGCore:Client:OnJobUpdateclient``client/client.lua
RSGCore:Client:OnPlayerUnloadclient``client/client.lua
rsg-telephone:client:startPlacementclientoptsclient/client.lua
rsg-telephone:client:openAdminclient``client/client.lua
rsg-telephone:server:cancelPlaceserver``server/server.lua
rsg-telephone:server:hangUpserver``server/server.lua
-- from a client script
TriggerServerEvent('rsg-telephone:server:cancelPlace')
-- from a server script
TriggerClientEvent('rsg-telephone:client:startVoice', source, partner)

Commands#

CommandNotesFile
/phoneadminlocale('cmd_phoneadmin')server/server.lua
/addphonelocale('cmd_addphone')server/server.lua
/removephonelocale('cmd_removephone')server/server.lua
/phonejoblocale('cmd_phonejob')server/server.lua
/phoneinfolocale('cmd_phoneinfo')server/server.lua

Locales#

Language files in locales/: de, el, en, es, fr, ja, nl, pl, pt-br, ro, ru. Set the language with setr rsg:locale "en".

<!-- END AUTO-REFERENCE -->