Jump to content

[HELP] Problem with Testing the Script.


Swifity

Recommended Posts

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 by Guest
Link to comment
  • Discord Moderators
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

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