Skip to content

Commit

Permalink
chore: minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Sep 15, 2024
1 parent abd0550 commit b0c5c42
Show file tree
Hide file tree
Showing 3 changed files with 437 additions and 454 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,10 @@ local Keys = {

PlayerData = {}
local jailTime = 0
ESX = exports["es_extended"]:getSharedObject()

CreateThread(function()
ESX = exports["es_extended"]:getSharedObject()
while ESX.GetPlayerData() == nil do
Wait(10)
end

PlayerData = ESX.GetPlayerData()

LoadTeleporters()
end)

Expand Down Expand Up @@ -265,7 +260,7 @@ end

function DeliverPackage(packageId)
if DoesEntityExist(packageId) then
AttachEntityToEntity(packageId, PlayerPedId(), GetPedBoneIndex(PlayerPedId(), 28422), 0.0, -0.03, 0.0, 5.0, 0.0, 0.0, 1, 1, 0, 1, 0, 1)
AttachEntityToEntity(packageId, PlayerPedId(), GetPedBoneIndex(PlayerPedId(), 28422), 0.0, -0.03, 0.0, 5.0, 0.0, 0.0, true, true, false, true, 0, true)

ClearPedTasks(PlayerPedId())
else
Expand Down
Loading

0 comments on commit b0c5c42

Please sign in to comment.