Skip to content

orm_addvar_string

imshooter edited this page Dec 1, 2026 · 2 revisions

Map a string variable to a field of an ORM.

native bool:orm_addvar_string(ORM:id, var[], var_maxlen, const columnname[]);

With open.mp names, from the same include:

native bool:ORM_AddVariableString(ORM:id, var[], var_maxlen, const columnname[]);

Parameters

Parameter Description
ORM:id The ORM.
var[] The variable, which must outlive the ORM.
var_maxlen Size of the variable.
const columnname[] The field.

Returns

  • true when it was mapped.
  • false when the ORM does not exist, the size is not valid, or the field is mapped already.

Home

Guides

Reference

Functions

Connections
Queries
Cache
JSON cells
ORM
Queries built in pieces
Prepared statements
Batches
Transactions
Passwords
Callbacks

Clone this wiki locally