Jump to content

I can't see this ressource in my admin panel


Flash

Recommended Posts

hi all

i have made a simple script with notepad++ with a meta.xml but when i put it in the ressources but when i open my admin panel in the ressource i didn't find it when i write /start (my-script) they say me couldn't be found

this is my script

function Flash() 
 x = 5 
 y = 10 
 outputChatBox("Flash is a noob he have "..x.." bananas and "..y.."tomatoes", getRootElement(), 255, 255, 255, true) 
 end 
 addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()),Flash ) 

and this is meta:

    "Flash" type="script" name="Flash" description="flash test" /> 
    

SO?

Link to comment
  • Moderators
furthermore, I think you have to tostring() those x and y values for outputChatBox.

No you can make like that

You have to create a folder "YourResourceName" ( don't use any spaces in your resource name ! )

Then put in it your test.lua and your meta.xml

And replace this:

In meta.xml, script type is server not client.
Link to comment
  • Discord Moderators
furthermore, I think you have to tostring() those x and y values for outputChatBox.

No you can make like that

My bad, confused it with outputDebugString (that can't take a number value unlike outputChatBox)

but I forgot its only if you parse a number not resumed in a string

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