Update mescaline.lua

This commit is contained in:
Mustache Dom authored and GitHub committed 2024-07-11 17:43:41 -07:00
1 parent 0ce4e27a60
commit cf41e75bb1
1 file changed
-6
-6
View File
@@ -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}