addCommandHandler("pktmed",function (plr)
if ableToUseRoadBlockSystem(plr) then
if not isPedInVehicle(plr) then
local x, y, z = getElementPosition( plr )
local _, _, zr = getElementRotation( plr )
allRoadBlocks[plr][#allRoadBlocks[plr] + 1] = createObject( 3906, x,y,z-0.95,0,0,zr)
local marker = createMarker(x-0.4, y, z-0.5, 'cylinder', 1.0, 120, 132, 13, 100)
setElementPosition(plr,x,y+1,z+1)
for key, value in pairs(allRoadBlocks[plr]) do
end
else
end
end
end)