Jump to content

Strange problem..? :S


Xeno

Recommended Posts

Posted

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 
  

Posted

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 

Posted
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 :)

Posted
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?

Posted
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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...