forked from Simnation/Main
ed
This commit is contained in:
parent
884f3df7cf
commit
a918d137e5
2 changed files with 0 additions and 25 deletions
|
@ -199,20 +199,6 @@ AddEventHandler("chema_shisha:delete", function(source)
|
|||
end
|
||||
end)
|
||||
|
||||
RegisterNetEvent("chema_shisha:spawn")
|
||||
AddEventHandler("chema_shisha:spawn", function(source, xPlayer)
|
||||
local playerPed = GetPlayerPed(-1)
|
||||
local coords = GetEntityCoords(playerPed)
|
||||
|
||||
local model = GetHashKey('prop_bong_01')
|
||||
RequestModel(model)
|
||||
while not HasModelLoaded(model) do
|
||||
Wait(0)
|
||||
end
|
||||
|
||||
mobilehooka = CreateObject(model, coords.x+0.5, coords.y+0.1, coords.z-0.7, true, true, false)
|
||||
end)
|
||||
|
||||
-- Helper function for 3D text
|
||||
function DrawText3D(coords, text, size)
|
||||
local onScreen, x, y = World3dToScreen2d(coords.x, coords.y, coords.z)
|
||||
|
@ -261,4 +247,3 @@ AddEventHandler("chema_shisha:deleteAll", function()
|
|||
DeleteObject(mobilehooka)
|
||||
end
|
||||
end)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue