-
-
Notifications
You must be signed in to change notification settings - Fork 0
Module: Character
Аниса edited this page Dec 13, 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 can create multiple character under their account, this module comes into the play!
local table: result, table: arguments = dbify.character.fetchAll(
table: {
--These are conditional datas that has to be used for the query
{string: columnName, ~: columnValue},
},
table: arguments
)
local int: characterID, table: arguments = dbify.character.create(
table: arguments
)
local bool: result, table: arguments = dbify.character.delete(
int: characterID,
table: arguments
)
local bool: result, table: arguments = dbify.character.setData(
int: characterID,
table: {
--These are columns that has to be updated w/ their respective values
{string: columnName, ~: columnValue},
...
},
table: arguments
)
local table: result, table: arguments = dbify.character.getData(
int: characterID,
table: {
--These are columns whose values are to be retrieved
string: columnName,
...
},
table: arguments
)