tropicalidiot Posted February 26 Posted February 26 Hey, im using this - // Activate cell phone camera if (typeof mp.game.mobile.cellCamActivate === 'function') { mp.game.mobile.cellCamActivate(true, true); ---------- but once im in camera mode, i can't walk at all. is it possible to actually allow player to walk while in camera mode ? Thanks.
PolskiDywan Posted March 2 Posted March 2 Hey! The reason you can't walk is that the game freezes your ped if they aren't physically holding the phone object. You just need to spawn the phone before activating the camera. Try changing your code to this: To Activate: // Spawns the phone (0 = Michael's, 1 = Trevor's, 2 = Franklin's) mp.game.mobile.createMobilePhone(0); mp.game.mobile.cellCamActivate(true, true); To Deactivate: mp.game.mobile.cellCamActivate(false, false); mp.game.mobile.destroyMobilePhone(); // Don't forget to remove the object! If you are using a CEF UI for your phone, make sure your cursor isn't blocking game controls. If you use mp.gui.cursor.show, make sure the second parameter is false (mp.gui.cursor.show(true, false);) so you can still use WASD.
Kiddu Posted March 7 Posted March 7 Im trying to make a CEF Phone but utilise the camera from GTA5 / GTAONLINE like how they turn the camera around but it keeps freezing my character in place trying to open the phone, do you have any idea how I could achieve that? thank you.
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