Woozie Posted August 15, 2011 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.
JR10 Posted August 15, 2011 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) Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
JR10 Posted August 15, 2011 Posted August 15, 2011 No problem. Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
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