diff --git a/client/mescaline.lua b/client/mescaline.lua index 96a41fc..47732f9 100644 --- a/client/mescaline.lua +++ b/client/mescaline.lua @@ -14,9 +14,6 @@ RegisterNetEvent('Mescaline:respawnCane', function(loc) local hash = GetHashKey(v.model) if not Mescaline[loc] then Mescaline[loc] = CreateObject(hash, v.location, false, true, true) - --SetEntityAsMissionEntity(Mescaline[loc], true, true) - --FreezeEntityPosition(Mescaline[loc], true) - --SetEntityHeading(Mescaline[loc], v.heading) Freeze(Mescaline[loc], true, v.heading) exports['qb-target']:AddTargetEntity(Mescaline[loc], { options = { @@ -42,9 +39,6 @@ RegisterNetEvent("Mescaline:init", function() if not HasModelLoaded(hash) then LoadModel(hash) end if not v.taken then Mescaline[k] = CreateObject(hash, v.location.x, v.location.y, v.location.z, false, true, true) - --SetEntityAsMissionEntity(Mescaline[k], true, true) - --FreezeEntityPosition(Mescaline[k], true) - --SetEntityHeading(Mescaline[k], v.heading) Freeze(Mescaline[k], true, v.heading) exports['qb-target']:AddTargetEntity(Mescaline[k], { options = { { icon = "fas fa-hand", label = "Pick Mescaline", action = function() if not progressbar(Lang.mescaline.pick, 4000, 'uncuff') then return end TriggerServerEvent("Mescaline:pickupCane", k) end}