koko-moneycase

10.00 EUR

koko-moneycase

Package Description

This resource is encrypted with FiveM escrow

After purchase you can access the script at 
https://keymaster.fivem.net/asset-grants

Preview 
Video

For support - Discord


Features 

Fully customizable resource using QBCore based framework

Limit on how much money player can store in one moneycase

Every moneycase is unique

Choice to have prop in player hand if they have moneycase in inventory

Even that its encrypted most part is not like menus, props and others

Dependencies

 QBCore based framework (you can change to your core from config.lua like qb-, IF- or the way your core is maded) - IT HAVE TO BE A QBCore BASED OR SMILLAR

Any notification resource (you can edit it from config)

OxMysql or MySqlAsync - probably and others will work -- fxmanifest.lua

qb-menu or other its editable

qb-input or other its editable 



The Config.lua

Config = {}

Config.Core = 'qb-core' -- your core prefix

Config.Prop = true  -- When having a moneycase in inventory it spawns a prop in player hand

Config.Price = 1000 -- price of the moneycase

Config.Limit = 1000 -- Max money that player can have in moneycase


-- Translates

Config.T1 = "You don't have enough money to buy a case"

Config.T2 = "You have purchased a money briefcase"

Config.T3 = "You don't have enough money"

Config.T4 = "You deposited: "

Config.T5 = "You withdrawed: "

Config.T6 = "No enought space in your moneycase! Max space: "


function ShowNotification(msg, type)

    local QBCore = exports[Config.Core]:GetCoreObject() -- dont change IFCore as it will break the script

    QBCore.Functions.Notify(msg, type) -- -- dont change IFCore as it will break the script

    

    --exports['okokNotify']:Alert("MultiJob", msg, 5000, type) 

    -- you can change that to your own CLIENT SIDE (can be export)

end

function ShowNotificationServer(source, msg, type)

 --TriggerClientEvent('okokNotify:Alert', source, "MultiJob", msg, 5000, type)

    TriggerClientEvent('QBCore:Notify', source, msg, type)

 -- you can change that to your own CLIENT SIDE (can't be export)

 end

The SQL

CREATE TABLE `moneybriefcase` (

  `pin` varchar(999) NOT NULL,

  `money` varchar(999) NOT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8;


The item


    -- KOKO-MoneyBriefCase

["moneybriefcase"]    = {["name"] = "moneybriefcase",    
["label"] = "Brief Case", ["weight"] = 150,
["type"] = "item", ["image"] = "moneycase.png",
["unique"] = true, ["useable"] = true,
["shouldClose"] = true, ["combinable"] = nil,
["description"] = "Money inside"},