Jump to content

[HELP] Freeroam spawnpoint


rafull6

Recommended Posts

Posted

Hey, Guys! I have a problem :( Tell me please how to edit freeroam resource, that when you are joining the server you automaticly spawning at the current point (freeroam map didn't apper)?

I've replaced this in freeroam serverside:

addEvent('onLoadedAtClient', true) 
addEventHandler('onLoadedAtClient', g_ResRoot, 
    function(player) 
        if getOption('spawnmaponstart') and isPedDead(player) then 
            clientCall(player, 'showWelcomeMap') 
        end 
    end, 
    false 
) 

to this:

players = getElementsByType ( "player" ) 
-- Go through every player 
for playerKey, playerValue in ipairs(players) do 
    -- Spawn them at the desired coordinates 
    spawnPlayer ( playerValue, -1944.0366210938, 486.78268432617, 31.96875, 90.0, 0 ) 
end 
  

and deleted this line from freeroam clientside:

triggerServerEvent('onLoadedAtClient', g_ResRoot, g_Me) 

But it doesn't work. Why!?

P.S. At the map my blip shows at the spawnpoint but my screen at the Chilliad :shock:

Posted

add this

addEvent('onLoadedAtClient', true) 
addEventHandler('onLoadedAtClient', g_ResRoot, 
    function(player) 
        if getOption('spawnmaponstart') and isPedDead(player) then 
            spawnPlayer ( player, -1944.0366210938, 486.78268432617, 31.96875, 90.0, 0 ) 
        end 
    end, 
    false 
) 

add back to freeroam clientside:

triggerServerEvent('onLoadedAtClient', g_ResRoot, g_Me) 

Posted

Okay, how to disable waiting screen at the Chilliad mountin?

P.S. I sad that spawning at my point works, but when i joining the server i see Chilliad mountin and nothing more. When I am trying to find myself at map (while i see chilliad screen) player blip shows that i am at my spawn point.

Question: how to turn off that waiting screen?

  • MTA Team
Posted

I was telling him how to fix it in the future, I have no problem reading topics so if you wanna criticize I don't really care.

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