Skip to content

Commit

Permalink
fixed blinking issue #8
Browse files Browse the repository at this point in the history
  • Loading branch information
swkeep committed Jun 23, 2022
1 parent ba46e78 commit 6490a89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions client/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -317,11 +317,6 @@ AddEventHandler('onResourceStart', function(resourceName)
end)
end)

RegisterNetEvent('QBCore:Client:OnPlayerLoaded', function()
Wait(1500)
loadData()
end)

RegisterNetEvent('keep-oilrig:client:local_mail_sender', function(data)
local Lang = Oilwell_config.Locale
local price = data.transport_price * data.amount
Expand All @@ -335,6 +330,7 @@ RegisterNetEvent('keep-oilrig:client:local_mail_sender', function(data)
end)

RegisterNetEvent('QBCore:Client:OnPlayerLoaded', function()
Wait(3000)
QBCore.Functions.GetPlayerData(function(PlayerData)
PlayerJob = PlayerData.job
if PlayerJob.name == 'oilwell' then
Expand Down
2 changes: 1 addition & 1 deletion client/client_lib/client_lib_entry.lua
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function createOwnerQbTarget(entity)
exports['qb-target']:AddBoxZone("oil-rig-" .. entity, coord, 3, 5, {
name = "oil-rig-" .. entity,
heading = GetEntityHeading(entity),
debugPoly = true,
debugPoly = false,
minZ = coord.z,
maxZ = coord.z + 3,
}, {
Expand Down

0 comments on commit 6490a89

Please sign in to comment.