Introduction
Functions
Misc
Introduction/functions-functions
Functions
Functions can be defined using func_define define, example:
func_define->example_function = param_1, param_2
Then define what our function does whenever it gets executed, example:
example_function::
{
gm_stock->console_log("Hello world"), 0)
}
You can also make a function modify a variable, example:
func_define->example_function = output
example_function::
{
local_var_define->success = bool, true
gm_stock->switch_var(output, success) ..you can just input true or false instead..
}