okokBanking

YouTube Video

Installation Guide

Execute the following SQL code in your database:

CREATE TABLE `okokbanking_transactions`	(
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `receiver_identifier` varchar(255) NOT NULL,
    `receiver_name` varchar(255) NOT NULL,
    `sender_identifier` varchar(255) NOT NULL,
    `sender_name` varchar(255) NOT NULL,
    `date` varchar(255) NOT NULL,
    `value` int(50) NOT NULL,
    `type` varchar(255) NOT NULL,
    PRIMARY KEY (`id`)
);

CREATE TABLE `okokbanking_societies`	(
    `society` varchar(255) NULL DEFAULT NULL,
    `society_name` varchar(255) NULL DEFAULT NULL,
    `value` int(50) NULL DEFAULT NULL,
    `iban` varchar(255) NOT NULL,
    `is_withdrawing` int(1) NULL DEFAULT NULL
);

If using ESX, execute the following code as well:

ALTER TABLE `users` ADD COLUMN `iban` varchar(255) NULL DEFAULT NULL;
ALTER TABLE `users` ADD COLUMN `pincode` int(50) NULL DEFAULT NULL;

If using QBCore, execute the following code:

ALTER TABLE `players` ADD COLUMN `pincode` int(50) NULL DEFAULT NULL;

[QBCore] If using management funds:

ALTER TABLE `management_funds` ADD COLUMN `iban` varchar(255) DEFAULT NULL;

[QBCore] If not using management funds:

ALTER TABLE `bank_accounts` ADD COLUMN `iban` varchar(255) DEFAULT NULL;

QBCORE ONLY

Navigate to qb-core/server/player.lua and add the following code underneath function self.Functions.SetJobDuty(onDuty) ... end:

self.Functions.ChangeIban = function(iban)
    self.PlayerData.charinfo.account = iban
    self.Functions.UpdatePlayerData()
end

Exports

exports['okokBanking']:GetAccount(society)
exports['okokBanking']:AddMoney(society, value)
exports['okokBanking']:RemoveMoney(society, value)

Server artifacts

Make sure your server artifacts version is above the 5181.

Last updated