Jump to content

[QUESTION] How to disable FR GUI in this script?


Tokio

Recommended Posts

		if showWho ~= true then
        outputChatBox("** #FFFF00You Jailed [ "..getPlayerName(thePlayer).." #FFFF00] at "..theJail[1].." For "..time,source,255,0,0,true)
        outputChatBox("** #FFFF00You Have Been Jailed By [ "..getPlayerName(source).." #FFFF00] at "..theJail[1].." For "..time,thePlayer,255,0,0,true)
		setElementData(thePlayer,"Jailed",true)
        end

go  to freeroam, find the "bindkey", then 

if getElementData(localPlayer,"Jailed") == true then return outputChatBox("You can't use this when you arrested") end

 

Quote

 

Link to comment
24 minutes ago, TheMOG said:

		if showWho ~= true then
        outputChatBox("** #FFFF00You Jailed [ "..getPlayerName(thePlayer).." #FFFF00] at "..theJail[1].." For "..time,source,255,0,0,true)
        outputChatBox("** #FFFF00You Have Been Jailed By [ "..getPlayerName(source).." #FFFF00] at "..theJail[1].." For "..time,thePlayer,255,0,0,true)
		setElementData(thePlayer,"Jailed",true)
        end

go  to freeroam, find the "bindkey", then 


if getElementData(localPlayer,"Jailed") == true then return outputChatBox("You can't use this when you arrested") end

 

 

does not working this :/ the FR GUI is working when the player in a jail :S 

Link to comment
function toggleFRWindow()
if getElementData(localPlayer,"Jailed") == true then
    cancelEvent()
end    

    if isWindowOpen(wndMain) then
        showCursor(false)
        hideAllWindows()
        colorPicker.closeSelect()
    else
        showCursor(true)
        showAllWindows()
    end
end

 

Link to comment
8 minutes ago, TheMOG said:

function toggleFRWindow()
if getElementData(localPlayer,"Jailed") == true then
    cancelEvent()
end    

    if isWindowOpen(wndMain) then
        showCursor(false)
        hideAllWindows()
        colorPicker.closeSelect()
    else
        showCursor(true)
        showAllWindows()
    end
end

 

still not working :/

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...