Woozie Posted August 15, 2011 Share Posted August 15, 2011 Hi, I'm getting a problem with setElementPosition, i made a teleport command, and when i use it inside a car i just teleport to the location. But when i'm away from teleport place my car hit the floor and fly much fast. I've tried with setElementVelocity, setElementRotation but nothing works... Is there some way that i can teleport and stay parked? Thank you. Link to comment
JR10 Posted August 15, 2011 Share Posted August 15, 2011 Yea, there is a problem when warping yourself inside a vehicle, I suggest you check if the player is inside a vehicle, remove him from it, setElementPosition(vehicle) warp the vehicle, and then warpPedIntoVehicle. if isPedInVehicle(player) then local vehicle = getPedOccupiedVehicle(player) removePedFromVehicle(player) setElementPosition(vehicle, 0, 0, 0) setTimer(warpPedIntoVehicle, 300, 1, player, vehicle) 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