I have this so far:
AddEventHandler('murtaza:sbarrier', function()
local x, y, z = table.unpack(GetEntityCoords(GetPlayerPed(-1), true))
RequestModel('prop_mp_barrier_02b')
while not HasModelLoaded('prop_mp_barrier_02b') do
Citizen.Wait(1)
end
local cone = CreateObject('prop_mp_barrier_02b', x, y, z-1, true, true, true)
PlaceObjectOnGroundProperly(object)
notification('~g~The small barrier has been placed!')
end)
The barrier faces in a different direction which looks odd. Is there a way to make it face the way you are facing. If possible, an explanation would be great. Thank you in advance!