Xeno Posted November 26, 2011 Posted November 26, 2011 I'm not sure what is happening! I do setElementPosition, and the radar blips and my map objects all teleport too the place where I set the setElementPosition function doneButton(thePlayer) guiSetVisible(guiSkinShop,false) guiSetVisible(windowLogin, false) showCursor(false) triggerServerEvent("setCameraRegister", getRootElement()) end function setCameraRegister(player, thePlayer) setTimer(setElementPosition,1000,1,source, 120,-1021,23.2) setTimer( setCameraTarget,1200,1, source ) setTimer ( fadeCamera, 50, 1, source,false, 1 ) setTimer ( fadeCamera, 3000, 1, source,true, 3 ) setElementFrozen ( source, false ) showPlayerHudComponent ( source, "radar", true ) showChat(source, true) end
Castillo Posted November 26, 2011 Posted November 26, 2011 lol, that's because you did "getRootElement()" in the triggerServerEvent, that'll set the position of EACH and EVERY element. function doneButton(thePlayer) guiSetVisible(guiSkinShop,false) guiSetVisible(windowLogin, false) showCursor(false) triggerServerEvent("setCameraRegister", localPlayer) end
Xeno Posted November 26, 2011 Author Posted November 26, 2011 lol, that's because you did "getRootElement()" in the triggerServerEvent, that'll set the position of EACH and EVERY element. function doneButton(thePlayer) guiSetVisible(guiSkinShop,false) guiSetVisible(windowLogin, false) showCursor(false) triggerServerEvent("setCameraRegister", localPlayer) end Shit. LOL. Thanks, I didn't check the script correctly
Xeno Posted November 26, 2011 Author Posted November 26, 2011 You're welcome . Castillo, I have a problem again and I don't know what's wrong, it seems my warpPedIntoVehicle isn't working on ANYTHING, on my Admin panel when you spawn a car, it doesn't work, it spawns the car underneath, and on all my scripts it doesn't warp into the vehicle. Any idea what's wrong?
Castillo Posted November 26, 2011 Posted November 26, 2011 You mean that you can't warp yourself to ANY vehicle? if so, try restarting MTA.
Xeno Posted November 26, 2011 Author Posted November 26, 2011 You mean that you can't warp yourself to ANY vehicle? if so, try restarting MTA. Ah, I restarted the local server and it worked.
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