Skip to content

orm_setkey

imshooter edited this page Nov 29, 2026 · 1 revision

Make the variable of a field the key of an ORM. A key set before goes back to the variables.

native bool:orm_setkey(ORM:id, const columnname[]);

With open.mp names, from the same include:

native bool:ORM_SetKey(ORM:id, const columnname[]);

Parameters

Parameter Description
ORM:id The ORM.
const columnname[] The field.

Returns

  • true when it is the key.
  • false when the ORM does not exist, or the field is not mapped.

Home

Guides

Reference

Functions

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

Clone this wiki locally