Skip to content

Commit 007c466

Browse files
Merge pull request #98 from Molicheu/main
Coke Plant PR
2 parents d80ed8e + 5110d95 commit 007c466

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

client/coke.lua

+13-13
Original file line numberDiff line numberDiff line change
@@ -135,19 +135,19 @@ local function GenerateCocaLeafCoords()
135135
end
136136

137137
local function SpawnCocaPlants()
138-
while spawnedCocaLeaf < 15 do
139-
Wait(0)
140-
local weedCoords = GenerateCocaLeafCoords()
141-
RequestModel(`mw_coke_plant`)
142-
while not HasModelLoaded(`mw_coke_plant`) do
143-
Wait(100)
144-
end
145-
local obj = CreateObject(`mw_coke_plant`, weedCoords.x, weedCoords.y, weedCoords.z, false, true, false)
146-
PlaceObjectOnGroundProperly(obj)
147-
FreezeEntityPosition(obj, true)
148-
table.insert(CocaPlants, obj)
149-
spawnedCocaLeaf += 1
150-
end
138+
while spawnedCocaLeaf < 15 do
139+
Wait(0)
140+
local weedCoords = GenerateCocaLeafCoords()
141+
RequestModel(`h4_prop_bush_cocaplant_01`)
142+
while not HasModelLoaded(`h4_prop_bush_cocaplant_01`) do
143+
Wait(100)
144+
end
145+
local obj = CreateObject(`h4_prop_bush_cocaplant_01`, weedCoords.x, weedCoords.y, weedCoords.z, false, true, false)
146+
PlaceObjectOnGroundProperly(obj)
147+
FreezeEntityPosition(obj, true)
148+
table.insert(CocaPlants, obj)
149+
spawnedCocaLeaf += 1
150+
end
151151
end
152152

153153

client/target.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ CreateThread(function()
293293
end)
294294

295295
CreateThread(function()
296-
exports['qb-target']:AddTargetModel("mw_coke_plant", {
296+
exports['qb-target']:AddTargetModel("h4_prop_bush_cocaplant_01", {
297297
options = {
298298
{
299299
type = "client",

0 commit comments

Comments
 (0)