Hero192 Posted August 24, 2015 Posted August 24, 2015 Hey guys, i tried to make a gamemode so, i removed all the default MTA scripts i let only "web resources" then i added my resources but, when i try to enter in game (i can't ) i face a BLACK SCREEN, why that? What i have to add? (i won't add the freeroam / play resources) i want make gamemode
Mr.Loki Posted August 24, 2015 Posted August 24, 2015 you can use either onPlayerLogin / onPlayerJoin then setElementPosition setCameraTarget fadeCamera exammple: addEventHandler("onPlayerJoin/onPlayerLogin",root, function() setElementPosition(source,x,y,z) setCameraTarget(source) fadeCamera(source) end )
Hero192 Posted August 24, 2015 Author Posted August 24, 2015 I tried that but doesn't works, what i have to do ? i want to create gamemode addEventHandler("onPlayerJoin",root, function() setElementPosition(source,329.10980224609, -2117.2749023438, 40.161201477051) setCameraTarget(source,source) fadeCamera(source,source) end)
Mr.Loki Posted August 24, 2015 Posted August 24, 2015 because your arguments for fadeCamera are wrong... click on it to go to the wiki for an example
Hero192 Posted August 24, 2015 Author Posted August 24, 2015 Doesn't working even with that, anyone? i want to know what should i do to let the player see the screen on joining and warp to this position addEventHandler("onPlayerJoin",root, function() setElementPosition(source,329.10980224609, -2117.2749023438, 40.161201477051) setCameraTarget(source,source) fadeCamera(source,false) end)
Mr.Loki Posted August 24, 2015 Posted August 24, 2015 fadeIn: Should the camera be faded in or out? Pass true to fade the camera in, false to fade it out to a color.
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