Flash Posted April 1, 2011 Posted April 1, 2011 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?
Discord Moderators Zango Posted April 1, 2011 Discord Moderators Posted April 1, 2011 furthermore, I think you have to tostring() those x and y values for outputChatBox.
Moderators Citizen Posted April 1, 2011 Moderators Posted April 1, 2011 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.
Flash Posted April 1, 2011 Author Posted April 1, 2011 Thx to proracer And citizen its working nice =DDDD
Discord Moderators Zango Posted April 1, 2011 Discord Moderators Posted April 1, 2011 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now