added a lot
moved some functions around, added better ox inv options so no longer requires items in qb-core changed call backs to oxlib callbacks cried twice added new func
This commit is contained in:
1 parent
5448eabd87
commit
b6b4776ab2
16 files changed
+156
-110
No files matched your search
+8
-6
@@ -9,9 +9,10 @@ RegisterNetEvent('coke:respawnCane', function(loc)
|
||||
--if not HasModelLoaded(hash) then LoadModel(hash) end
|
||||
if not CocaPlant[loc] then
|
||||
CocaPlant[loc] = CreateObject(hash, v.location, false, true, true)
|
||||
SetEntityAsMissionEntity(CocaPlant[loc], true, true)
|
||||
FreezeEntityPosition(CocaPlant[loc], true)
|
||||
SetEntityHeading(CocaPlant[loc], v.heading)
|
||||
-- SetEntityAsMissionEntity(CocaPlant[loc], true, true)
|
||||
-- FreezeEntityPosition(CocaPlant[loc], true)
|
||||
-- SetEntityHeading(CocaPlant[loc], v.heading)
|
||||
Freeze(CocaPlant[loc], true, v.heading)
|
||||
exports['qb-target']:AddTargetEntity(CocaPlant[loc], {
|
||||
options = { {
|
||||
icon = "fas fa-hand",
|
||||
@@ -38,9 +39,10 @@ RegisterNetEvent("coke:init", function()
|
||||
if not HasModelLoaded(hash) then LoadModel(hash) end
|
||||
if not v.taken then
|
||||
CocaPlant[k] = CreateObject(hash, v.location.x, v.location.y, v.location.z, false, true, true)
|
||||
SetEntityAsMissionEntity(CocaPlant[k], true, true)
|
||||
FreezeEntityPosition(CocaPlant[k], true)
|
||||
SetEntityHeading(CocaPlant[k], v.heading)
|
||||
-- SetEntityAsMissionEntity(CocaPlant[k], true, true)
|
||||
-- FreezeEntityPosition(CocaPlant[k], true)
|
||||
-- SetEntityHeading(CocaPlant[k], v.heading)
|
||||
Freeze(CocaPlant[k], true, v.heading)
|
||||
exports['qb-target']:AddTargetEntity(CocaPlant[k], {
|
||||
options = { {
|
||||
icon = "fas fa-hand",
|
||||
|
||||
Reference in new issue
Block a user