-
Notifications
You must be signed in to change notification settings - Fork 9
Public caller
iAmir edited this page Mar 9, 2020
·
2 revisions
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
samp.callPublic('public name here', 'param types (specifiers)', args...);
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 |