From 1af47525ad0dae813c69ce9478ee2999660c7605 Mon Sep 17 00:00:00 2001 From: Rabbit Date: Fri, 22 Dec 2023 16:24:12 -0300 Subject: [PATCH] save --- src/external.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/external.lua b/src/external.lua index 9326c10..59a610a 100644 --- a/src/external.lua +++ b/src/external.lua @@ -1,36 +1,36 @@ -vRP = nil +fWK = nil if GetResourceState('vrp') ~= 'missing' then local Proxy = module("vrp", "lib/Proxy") - vRP = Proxy.getInterface("vRP") + fWK = Proxy.getInterface("vRP") end function hasGroup(userId, group) - return vRP.hasGroup(userId, group) + return fWK.hasGroup(userId, group) end function addGroup(userId, group) if hasGroup(userId, group) then return end - vRP.addUserGroup(userId, group) + fWK.addUserGroup(userId, group) end function removeGroup(userId, group) if not hasGroup(userId, group) then return end - vRP.removeUserGroup(userId, group) + fWK.removeUserGroup(userId, group) end function addBank(userId, quantity) - vRP.giveBankMoney(userId, quantity) + fWK.giveBankMoney(userId, quantity) return; end function removeBankMoney(userId, quantity) - return vRP.setBankMoney(userId, vRP.getBankMoney(userId) - quantity) + return fWK.setBankMoney(userId, fWK.getBankMoney(userId) - quantity) end function addMoney(userId, quantity) - vRP.giveMoney(userId, quantity) + fWK.giveMoney(userId, quantity) return; end