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 ) [REL]Cinema Experience Beta 2.0 [TUT]Object offsets with OOP. [TUT] Adding a Discord bot to your server. Discord: Loki#7355
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 [REL]Cinema Experience Beta 2.0 [TUT]Object offsets with OOP. [TUT] Adding a Discord bot to your server. Discord: Loki#7355
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. [REL]Cinema Experience Beta 2.0 [TUT]Object offsets with OOP. [TUT] Adding a Discord bot to your server. Discord: Loki#7355
xeon17 Posted August 26, 2015 Posted August 26, 2015 Use spawnPlayer instead of setElementPosition A unique GangWar gamemode waiting for you!Click here for more information.
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