getPlayer
This commit is contained in:
1 parent
502677054c
commit
b1bcb7ce56
15 files changed
+120
-127
No files matched your search
+2
-2
@@ -2,7 +2,7 @@ QBCore = exports['qb-core']:GetCoreObject()
|
||||
|
||||
lib.callback.register('md-drugs:server:payfortruck', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local Player = getPlayer(src)
|
||||
if Player.Functions.RemoveMoney('cash', Config.TruckPrice ) or Player.Functions.RemoveMoney('bank', Config.TruckPrice ) then
|
||||
Log(GetName(src) .. ' Rented A Van For OxyRuns', 'oxy')
|
||||
return true
|
||||
@@ -15,7 +15,7 @@ end)
|
||||
|
||||
RegisterServerEvent('md-drugs:server:giveoxybox', function()
|
||||
local src = source
|
||||
local Player = QBCore.Functions.GetPlayer(src)
|
||||
local Player = getPlayer(src)
|
||||
local chance = math.random(1,100)
|
||||
local cash = Config.OxyRunCompleteCash
|
||||
local itemchance = math.random(1,100)
|
||||
|
||||
Reference in new issue
Block a user