Andu333

a resource for random mesages on chat please!!!

Recommended Posts

messages = {}
messages[1] = 'Test'

function printMessage()
	local random = math.random(1,#messages)
	outputChatBox(messages[random])
end


setTimer ( printMessage, 30000, 0)

https://wiki.multitheftauto.com/wiki/SetTimer

https://wiki.multitheftauto.com/wiki/OutputChatBox

https://wiki.multitheftauto.com/wiki/Math

Edited by CodyJ(L)
  • Like 2

Share this post


Link to post

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.