Skip to content

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

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
Clone this wiki locally