Я пока что новичёк раньше кодерил в самп
почему это не работает
function test(attacker)
outputChatBox( "Йа вызвался")
local x,y,z = getElementPosition (attacker)
setPedControlState ( source, "aim_weapon", true )
setPedAimTarget ( source, x, y, z)
setPedControlState ( source, "fire", true )
end
Персонаж стоит как и был но "луч" выстрела попадает в меня
как правильно установить SetElementRotation