Basic Configuration
This section covers how to configure the basic settings of the Ped Dialog script. By changing config.lua file.
Last updated
This section covers how to configure the basic settings of the Ped Dialog script. By changing config.lua file.
Last updated
true/false
You need to decide whether you will use interactions. If you don't need text over the ped's head and don't plan to use key interactions, set this to false
. This way, the script will not start the checking thread, avoiding unnecessary position checks in your situation.
number
Key to open ped dialog when you use key interaction to open it. You can find all key codes .
boolean
To make a player invisible locally while dialog is open set it to true
. (Other players can still see the player)
table
Default camera settings for the ped. These settings will be used if specific camera settings are not defined for the created ped.
offset
- offset calculated from the ped position.
fov
- camera FOV
pointZOffset
- Z offset of PointCamAtEntity
function (text: string, coords: Vector3)
A function to display text over head.
Keep in mind that this function is called every frame don't add any heavy logic here.
This one should be easy to understand. The script uses string formatting, and the comments explain what each %s
in the format represents.