You get any error?
And are you HeadAdmin?
Test this:
addCommandHandler ( 'matrix',
function ( _PED, _CMD )
if ( exports.global:isPlayerHeadAdmin ( _PED ) ) then
outputChatBox ( 'passed if. Is HeadAdmin' )
local a, b, c, d, e, f, g, h = getCameraMatrix ( _PED )
outputChatBox ( a .. ', ' .. b .. ', ' .. c .. ', ' .. d .. ', ' .. e .. ', ' .. f .. ', ' .. g .. ', ' .. h, _PED, 255, 255, 255, false )
else
outputChatBox ( 'youre not headadmin!' )
end
end
)
And tell me what output.