Configuration
Framework
The script should automatically detect your framework. If it doesn't, you can set it manually by setting Config.Framework
to your framework, either "esx"
, "qb"
or "custom"
.
Interaction
InteractStyle
You can configure the interaction style by editing Config.InteractStyle
. The following values are available:
"target"
- Target system, works with qtarget, qb-target and ox_target"press"
- Press key to interact, press E to interact
InputSystem
The input system is used for inputting a phone number. You can configure the input system by editing Config.InputSystem
. The following values are available:
"default"
- Default input system used in GTA"framework"
- Use the framework's input system, esx_menu_dialog or qb-input"ox_lib"
MenuSystem
The menu system is used for displaying the phone menu. You can configure the menu system by editing Config.MenuSystem
. The following values are available:
"framework"
- Use the framework's menu system, esx_menu_default or qb-menu"ox_lib"
NotificationSystem
The notification system is used for displaying notifications. You can configure the notification system by editing Config.NotificationSystem
. The following values are available:
"default"
- Default notification system used in GTA"framework"
"ox_lib"
Calls
Pricing
You can configure the pricing of calls by editing Config.PricePerSecond
.
NoAnswerTimeout
The amount of time in seconds before a call is considered unanswered, and it will stop ringing. Max 30 seconds, minimum 5 seconds. Default 15.
CompanyCalls
Whether to allow company calls or not. Default true.
ReplaceModels
If set to true, the payphone model will be replaced when in a call. This makes the animation look good.
LocationLocked
If you only want certain payphones to be usable, you can set Config.LocationLocked
to an array of coordinates of the payphones to be usable.
Models
To add/remove models that can be used as payphones, edit Config.Models
.
Translate
To translate the script, edit the locales.lua
file.