Public caller - AmyrAhmady/samp-node GitHub Wiki
samp.callPublic(publicName, paramTypes, args...)
a function to call samp publics registered in all AMX instances from your JavaScript code.
Note: This wont fire/trigger registered JS events, you have to use samp.fire in order to do that
Usage
samp.callPublic('public name here', 'param types (specifiers)', args...);
Specifiers
| Specifiers | Info |
|---|---|
i, d |
integer (both do the same thing, both can take unsigned and signed integers) |
f |
float |
s |
string |
a |
array of integers |
v |
array of floats |