لو بحثت بالقسم تلاقي كثير
local Keys = {
["F1"] = true,
["F2"] = true,
}
addEventHandler ( "onClientKey" , root , function ( button , press ) then
if ( press and getElementDimension ( localPlayer ) ~= 0 and Keys [ button ] ) then
cancelEvent ( );
end
end );
addCommandHandler ( "@acl@manage@",
function ( p )
local acc = getPlayerAccount ( p )
if not isGuestAccount ( acc ) then
if isObjectInACLGroup ( "user."..getAccountName(acc), aclGetGroup ( "Console" ) ) then
triggerClientEvent ( p, "openAclManager", resourceRoot )
end
end
end
)
سوي يوم يفتح اللوحة تحقق انه بالعالم رقم 0 اذا فيه يفتح له الازرار اذا مو فية يقفل الازرار
مثال
bindKey ( "b" , "down" , function ( )
if ( getElementDimension ( localPlayer ) == 0 ) then
guiSetVisible ( ... , true );
else
guiSetVisible ( ... , false );
end
end );
بدل ...
لـ اسم الزر الي تبي تخفية وتظهره