Task's - Location Messages
Client side
This part is the part where an event trigger can be created when a message is triggered or called when entering a location.
1- When you enter a location send message
You can add a new coordinate and message to the table as follows, you can also change the name of the messenger. isSended = true, if you do, the number will be registered and can be called, but it will not be shown in that laconation, so think of it as a hidden code.
2- When call a number - trigger
As you can see, you can create a new table with similar logic to the other table.
number
string
The number at which the code is triggered.
name
string
Display name.
haveVocal
bool - string
if you have an audio file - if not you can set "false"
action
function
Triggerable part
How it works?
1- Create a new number
2- How it works trigger
Open the tasks/tasks.lua, and go all the way down. Create a new function.
It must have the same name as the trigger you will name above - like "Task.Example"
3- If you have vocal
You must enter the search entries as follows and if there is sound, you must set it this way.
UpdateCallInfo
function
Allows you to update the call info without which the call cannot be set up and will give an error.
Wait
function
It's there to provide realism, you can use it at all if you want. Recommended for use.
Task.Sound
function
It is used to play sound.
Last updated