Update mescaline.lua
This commit is contained in:
1 parent
0ce4e27a60
commit
cf41e75bb1
1 file changed
-6
@@ -14,9 +14,6 @@ RegisterNetEvent('Mescaline:respawnCane', function(loc)
|
|||||||
local hash = GetHashKey(v.model)
|
local hash = GetHashKey(v.model)
|
||||||
if not Mescaline[loc] then
|
if not Mescaline[loc] then
|
||||||
Mescaline[loc] = CreateObject(hash, v.location, false, true, true)
|
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)
|
Freeze(Mescaline[loc], true, v.heading)
|
||||||
exports['qb-target']:AddTargetEntity(Mescaline[loc], {
|
exports['qb-target']:AddTargetEntity(Mescaline[loc], {
|
||||||
options = {
|
options = {
|
||||||
@@ -42,9 +39,6 @@ RegisterNetEvent("Mescaline:init", function()
|
|||||||
if not HasModelLoaded(hash) then LoadModel(hash) end
|
if not HasModelLoaded(hash) then LoadModel(hash) end
|
||||||
if not v.taken then
|
if not v.taken then
|
||||||
Mescaline[k] = CreateObject(hash, v.location.x, v.location.y, v.location.z, false, true, true)
|
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)
|
Freeze(Mescaline[k], true, v.heading)
|
||||||
exports['qb-target']:AddTargetEntity(Mescaline[k], {
|
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}
|
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}
|
||||||
|
|||||||
Reference in new issue
Block a user