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