Jump to content

outputTextBox variables


Recommended Posts

Hello! I want to make a script, which would make my days more confortable while writing scripts into mtaserver.conf, by a very simple outputchatbox script, but i have no idea how to fix this.

function mtaserverconf(thePlayer, cmd, variable)
local startup = "1"
local protected = "0"
outputChatBox ("<resource src="..tostring(variable).." startup="..startup.." protected="..protected.." />", thePlayer)
addCommandHandler ("m", mtaserverconf)

The problem is:
If i type in m asd it would display the following:

<resource src=asd startup=1 protected=0 />               <!--this is a bad syntax, there are missing symbols-->
<resource src="asd" startup="1" protected="0" />        <!-- this is a good one-->

Can somebody help me to make this possible?

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