Jump to content

Attempt to call global clearChatBox() a nil value


Unkovic

Recommended Posts

Posted

 

function CC(player, cmd)
	if(tonumber(getPlayerAnnounceValue(player, "Admin")) > 0) then
		clearChatBox()
		outputChatBox("#7C7A7A [#560000 WARBOOT #7C7A7A] #FF0000 [JETPACK] #FFFFFF ChatBox cleared by Admin", getAllPlayers(), 255, 0, 0, true)
	else outputChatBox("#7C7A7A [#560000 WARBOOT #7C7A7A] #4286F4 [PERMISSION] #FFFFFF You dont have rights to use this command.", player, 255, 0, 0, true)
    end
end

this dont work. Idk why, version is 1.5.5 installed 25.8.2018

Posted

Check if your server is running the version which is required for

clearChatBox

Also, try using it client-sided.

Something that I also thought about is that you have to set the minimum version of your server in order to use the new functions. But I'm not sure, this is just an assumption.

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...