-
-
Notifications
You must be signed in to change notification settings - Fork 0
Module: Vehicle
Аниса edited this page Jun 16, 2022
·
22 revisions
This module provides a custom vehicle management interface to integrate w/ your resources. For servers such as DayZ
, Roleplay
, RPG
, Arenas
where saving vehicle makes sense, this module comes into the play!
Syntax #2 should only be used in conjunction w/ thread
--Syntax #1:
local bool: state = dbify.vehicle.fetchAll(
table: {
--These are conditional datas that has to be used for the query
{string: columnName, ~: columnValue},
},
function: callback(table: result, table: arguments),
~: ...arguments
)
--Syntax #2:
local table: result, table: arguments = self:await(dbify.vehicle.fetchAll(
thread: self,
table: {
--These are conditional datas that has to be used for the query
{string: columnName, ~: columnValue},
},
~: ...arguments
))
--Syntax #1:
local bool: state = dbify.vehicle.create(
function: callback(int: vehicleID, table: arguments),
~: ...arguments
)
--Syntax #2:
local int: vehicleID, table: arguments = self:await(dbify.vehicle.create(
thread: self,
~: ...arguments
))
--Syntax #1:
local bool: state = dbify.vehicle.delete(
int: vehicleID,
function: callback(bool: result, table: arguments),
~: ...arguments
)
--Syntax #2:
local bool: result, table: arguments = self:await(dbify.vehicle.delete(
thread: self,
int: vehicleID,
~: ...arguments
))
--Syntax #1:
local bool: state = dbify.vehicle.setData(
int: vehicleID,
table: {
--These are columns that has to be updated w/ their respective values
{string: columnName, ~: columnValue},
...
},
function: callback(bool: result, table: arguments),
~: ...arguments
)
--Syntax #2:
local bool: result, table: arguments = self:await(dbify.vehicle.setData(
thread: self,
int: vehicleID,
table: {
--These are columns that has to be updated w/ their respective values
{string: columnName, ~: columnValue},
...
},
~: ...arguments
))
--Syntax #1:
local bool: state = dbify.vehicle.getData(
int: vehicleID,
table: {
--These are columns whose values are to be retrieved
string: columnName,
...
},
function: callback(table: result, table: arguments),
~: ...arguments
)
--Syntax #2:
local table: result, table: arguments = self:await(dbify.vehicle.getData(
thread: self,
int: vehicleID,
table: {
--These are columns whose values are to be retrieved
string: columnName,
...
},
~: ...arguments
))