Post: Quick GSC Cord Question
10-10-2014, 06:06 PM #1
MrToxlcBooty
I defeated!
(adsbygoogle = window.adsbygoogle || []).push({}); How would i set Player Origin on a specific coordinate? every time i do it i either freeze or it dosnt work :3
example:
    SendToJail(player)
{
player setOrigin(-889.414,508.472,79.125);
}
10-11-2014, 02:02 AM #2
Shark
Retired.
Originally posted by MrToxlcBooty View Post
How would i set Player Origin on a specific coordinate? every time i do it i either freeze or it dosnt work :3
example:
    SendToJail(player)
{
player setOrigin(-889.414,508.472,79.125);
}


because when you are setting an origin it requires a Vec3 array so your co-ords have to be wrapped in brackets all you have to do to fix it is this :p

    SendToJail(player)
{
player setOrigin( (-889, 508, 79) ); //See how I wrapped the origin in brackets you have to do the same for colors.
//Also your co-ords do not need to be so specific lol
}
10-11-2014, 02:30 AM #3
MrToxlcBooty
I defeated!
Originally posted by Shark View Post
because when you are setting an origin it requires a Vec3 array so your co-ords have to be wrapped in brackets all you have to do to fix it is this :p
    SendToJail(player)
{
player setOrigin( (-889, 508, 79) ); //See how I wrapped the origin in brackets you have to do the same for colors.
//Also your co-ords do not need to be so specific lol
}

it sends me to the jail ._. not the player?
i call it like
    self MenuOption("Client Function", 2, "Send To Jail", ::SendToJail,player);

tanks bb :wub:
nvm figured it out
Last edited by MrToxlcBooty ; 10-11-2014 at 02:58 AM.

Copyright © 2025, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo