local obj = createObject(335,0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
setElementCollisionsEnabled(eLight, false);
addEventHandler("onClientPreRender", getRootElement(),
function()
local x,y,z = getPedBonePosition(getLocalPlayer(), 22);
local x2,y2,z2 = getPedBonePosition(getLocalPlayer(), 23);
local x3,y3,z3 = getPedBonePosition(getLocalPlayer(), 26);
setElementRotation( obj , math.deg(math.atan2(z2 - z, math.sqrt((x2-x)*(x2-x) + (y2-y)*(y2-y)))), 0.0, math.deg(math.atan2(-(x2-x), y2-y)) + 40);
setElementPosition( obj , x3,y3,z3);
end
);
MTA forumunda rastlamıştım, buyrun kendinize göre editleyerek kullanabilirsiniz.