-
-
Notifications
You must be signed in to change notification settings - Fork 0
Module: Character
Аниса edited this page Dec 16, 2022
·
27 revisions
This module provides a custom character management interface to integrate w/ your resources.
For servers such as DayZ
, Roleplay
, RPG
, Arenas
where clients are essentially expected to create multiple character under their account, this module comes into the play!
local table: result, table: arguments = dbify.module.character.fetchAll(
table: {
--Conditional datas to be used for the query
{string: columnName, ~: columnValue},
...
},
bool: isSoloFetch, --Enabling this returns only first row of the retrieved result
~: ...arguments
)
local int: characterID, table: arguments = dbify.module.character.create(
~: ...arguments
)
local bool: result, table: arguments = dbify.module.character.delete(
int: characterID,
~: ...arguments
)
local bool: result, table: arguments = dbify.module.character.setData(
int: characterID,
table: {
--Columns to be updated w/ their respective values
{string: columnName, ~: columnValue},
...
},
~: ...arguments
)
local table: result, table: arguments = dbify.module.character.getData(
int: characterID,
table: {
--Columns whose values are to be retrieved
string: columnName,
...
},
~: ...arguments
)