rafull6 Posted June 26, 2011 Share Posted June 26, 2011 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 Link to comment
tigerman Posted June 26, 2011 Share Posted June 26, 2011 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) Link to comment
rafull6 Posted June 26, 2011 Author Share Posted June 26, 2011 May be something wrong with clientside? Link to comment
[DemoN] Posted June 26, 2011 Share Posted June 26, 2011 A lot of servers use Freeroam and Play resource at the same time. You can change spawn point in the Play resource... Link to comment
rafull6 Posted June 26, 2011 Author Share Posted June 26, 2011 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? Link to comment
The_Taker Posted June 27, 2011 Share Posted June 27, 2011 use the spawn point from the resource "play" it will work trust me i had that problem Link to comment
rafull6 Posted June 27, 2011 Author Share Posted June 27, 2011 Okay, i found it. Thank you very much guys! Link to comment
JR10 Posted June 27, 2011 Share Posted June 27, 2011 LOL? dude read the topic better next time and he already fixed it. Link to comment
qaisjp Posted June 27, 2011 Share Posted June 27, 2011 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. 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