manve1 Posted October 30, 2012 Share Posted October 30, 2012 I get a problem, because im currently creating a gamemode, so when i change my gamemode from play to the gamemode, i get a black screen, so is there a way i can make that it wouldn't be black? Link to comment
Tomc0 Posted October 30, 2012 Share Posted October 30, 2012 Maybe you can use: fadeCamera Link to comment
manve1 Posted October 30, 2012 Author Share Posted October 30, 2012 why would u fade the camera if there isn't one? and i dont know how to make one like in play gamemode Link to comment
Tomc0 Posted October 30, 2012 Share Posted October 30, 2012 Then try to use: setCameraTarget Link to comment
myonlake Posted October 30, 2012 Share Posted October 30, 2012 What? You want to fade camera in and out? Then use what Tomc0 told you first, which is "fadeCamera". If you want to fade the screen with something else, you could use dx-functions. Link to comment
manve1 Posted October 30, 2012 Author Share Posted October 30, 2012 no, i mean i get just a black screen: http://i.imgur.com/HU4vN.png i just turned off chat, thats what u can only see chat and a black screen edit: SS was too big for mta forums so only can put link Link to comment
Tomc0 Posted October 30, 2012 Share Posted October 30, 2012 That's why you need to use: function Camera( thePlayer ) fadeCamera( thePlayer, true ) end (When the resource starts) Link to comment
manve1 Posted October 30, 2012 Author Share Posted October 30, 2012 still black, i change ur code a bit, not really much, cuz i need it for client side more then server side function Camera( ) fadeCamera( localPlayer, true ) end addEventHandler('onClientResourceStart', getLocalPlayer(), Camera) Link to comment
Castillo Posted October 30, 2012 Share Posted October 30, 2012 function Camera ( ) fadeCamera ( true ) end addEventHandler ( 'onClientResourceStart', resourceRoot, Camera ) Link to comment
manve1 Posted October 30, 2012 Author Share Posted October 30, 2012 ty EDIT: i get problem with targeting the camera to the player ( sorry, i never used these before ) Link to comment
TAPL Posted October 30, 2012 Share Posted October 30, 2012 Read the Note at wiki: https://wiki.multitheftauto.com/wiki/SpawnPlayer Link to comment
manve1 Posted October 30, 2012 Author Share Posted October 30, 2012 EDIT: My player is now bugged, can't move, cant jump or do anything Link to comment
Tomc0 Posted October 30, 2012 Share Posted October 30, 2012 Maybe you can use toggleAllControls for it. 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