Roderen Posted July 24, 2021 Share Posted July 24, 2021 function getUpPickupCJ() local spawn = createPickup(2495.3962402344, -1690.7670898438, 14.765625, 3, 1318, 0) spawnPlayer(source, 2496.049804, -1695.238159, 1014.742187) end addEventHandler("onPickupHit", spawn, getUpPickupCJ) Link to comment
Scripting Moderators xLive Posted July 24, 2021 Scripting Moderators Share Posted July 24, 2021 (edited) spawnPlayer if the player is dead or not spawned yet, use setElementPosition instead. Also the source here is not the player onPickupHit: use the first parameter: Edited July 24, 2021 by xLive Link to comment
Roderen Posted July 24, 2021 Author Share Posted July 24, 2021 (edited) 12 minutes ago, xLive said: spawnPlayer if the player is dead or not spawned yet, use setElementPosition instead. Also the source here is not the player onPickupHit: use the first parameter: I will try Edited July 24, 2021 by Roderen Error Link to comment
DiSaMe Posted July 25, 2021 Share Posted July 25, 2021 8 hours ago, xLive said: spawnPlayer if the player is dead or not spawned yet, use setElementPosition instead. spawnPlayer works when the player is spawned and alive as far as I know, but it does more things than just teleporting, such as setting the skin and resetting the health to full, which is why it's not the right choice for teleporting. 1 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