function OpenWindow1( )
if ( getElementDimension ( localPlayer ) == 0 ) then
outputChatBox ( "#FB00FF• You can't select weapons outside the event", getRootElement(), 255, 255, 255, true)
return end
if removeEventHandler("onClientRender",root,Lou) then
removeEventHandler("onClientRender",root,Lou)
guiSetVisible ( weaponWind, false )
showCursor(false)
else
addEventHandler("onClientRender",root,Lou)
guiSetVisible ( weaponWind, true )
showCursor(true)
end
end
addCommandHandler ( "select", OpenWindow1 )
-- جرب