Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Open = false
- function toggleFRWindow(thePlayer)
- if isElement(thePlayer) then
- local accName = getAccountName ( getPlayerAccount ( thePlayer ) )
- if isObjectinACL("user."..accName, "Admin") then
- if Open == true then
- Open = false
- showCursor(thePlayer,false)
- triggerClientEvent ( thePlayer, "OpenOrClose", thePlayer,false)
- colorPicker.closeSelect()
- elseif Open == false then
- Open = true
- showCursor(thePlayer,true)
- triggerClientEvent ( thePlayer, "OpenOrClose", thePlayer,true)
- end
- end
- end
- end
- addCommandHandler('fr', toggleFRWindow)
- function OpenOrCloseClient(Open)
- if Open == true then
- showAllWindows()
- elseif Open == false then
- hideAllWindows()
- colorPicker.closeSelect()
- end
- end
- addEvent( "OpenOrClose", true )
- addEventHandler( "OpenOrClose", localPlayer, OpenOrCloseClient )
Add Comment
Please, Sign In to add comment