-
Notifications
You must be signed in to change notification settings - Fork 8
Server Functions
Bekir Aşkar edited this page Mar 12, 2023
·
2 revisions
Function | Resource | Source | Example |
getConn | mysql | Returns the database connection. | exports.mysql:getConn() |
getNewID | mysql | Returns the last id of the table in the database. | exports.mysql:getNewID(“accounts”) |
getAccountData | cache | Sends the requested data of the specified account. | exports.cache:getAccountData(1, “admin”) |
getCharacterData | cache | Sends the requested data of the specified character. | exports.cache:getCharacterData(1, “age”) |
getInteriorData | cache | Sends the requested data of the specified interior. | exports.cache:getInteriorData(1, “owner”) |
getVehicleData | cache | Sends the requested data of the specified vehicle. | exports.cache:getVehicleData(1, “model”) |
setAccountData | cache | Changes the specified account’s data to the specified value. | exports.cache:setAccountData(1, “admin”, 2) |
setCharacterData | cache | Changes the specified character’s data to the specified value. | exports.cache:setCharacterData(1, “age”, 25) |
setInteriorData | cache | Changes the specified inetior’s data to the specified value. | exports.cache:setInteriorData(1, “owner”, 2) |
setVehicleData | cache | Changes the specified vehicle’s data to the specified value. | exports.cache:setVehicleData(1, “tax”, 2500) |