-
-
Notifications
You must be signed in to change notification settings - Fork 0
Module: Vehicle
Аниса edited this page Dec 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 vehicles makes sense, this module comes into the play!
local table: result, table: arguments = dbify.module.vehicle.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: vehicleID, table: arguments = dbify.module.vehicle.create(
~: ...arguments
)
local bool: result, table: arguments = dbify.module.vehicle.delete(
int: vehicleID,
~: ...arguments
)
local bool: result, table: arguments = dbify.module.vehicle.setData(
int: vehicleID,
table: {
--Columns to be updated w/ their respective values
{string: columnName, ~: columnValue},
...
},
~: ...arguments
)
local table: result, table: arguments = dbify.module.vehicle.getData(
int: vehicleID,
table: {
--Columns whose values are to be retrieved
string: columnName,
...
},
~: ...arguments
)