Swifity Posted December 19, 2010 Share Posted December 19, 2010 (edited) Well Hello There Recently i have begun scripting with LUA, i use Notepad++ and i type in this code: function joinHandler() local x = 1959.55 local y = -1714.46 local z = 10 spawnPlayer(source, x, y, z) fadeCamera(source, true) setCameraTarget(source, source) outputChatBox("Welcome to My Server", source) end addEventHandler("onPlayerJoin", getRootElement(), joinHandler) After that i make a folder in the resource directory, and name it my server. I make a notepad code with meta.xml and do all that it says on the wikipedia. The problem is when i want to test it out, i can't find how to test my script that i have just tried please help! hotmail: [email protected] Edited December 19, 2010 by Guest Link to comment
Castillo Posted December 19, 2010 Share Posted December 19, 2010 type start resource_name in server console. Link to comment
Aibo Posted December 19, 2010 Share Posted December 19, 2010 or add it to mtaserver.conf for autostart: <resource src="yourResourceName" startup="1" protected="0" /> Link to comment
Discord Moderators Zango Posted December 19, 2010 Discord Moderators Share Posted December 19, 2010 and name it my server remember, resource names may not contain spaces. Use underscore or hyphen Link to comment
NotAvailable Posted December 20, 2010 Share Posted December 20, 2010 and name it my server remember, resource names may not contain spaces. Use underscore or hyphen Yes they can. It forks for me. Link to comment
Swifity Posted December 20, 2010 Author Share Posted December 20, 2010 type start resource_name in server console. did that, and nothing happends.. Link to comment
Discord Moderators Zango Posted December 20, 2010 Discord Moderators Share Posted December 20, 2010 and name it my server remember, resource names may not contain spaces. Use underscore or hyphen Yes they can. It forks for me. it must have been an improvement in 1.0.4 then, I remember several incidents where MTA Server ignores resources with spaces some time ago Link to comment
Castillo Posted December 20, 2010 Share Posted December 20, 2010 The server detects the resources with spaces but when you start them it will create a error when you try to download on join. P.S: i helped in via team viewer, i guess problem solved. Link to comment
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