Jump to content

UnitSeven

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by UnitSeven

  1. I'm looking at GTANetworkAPI.NAPI.Player methods ans see only FreezePlayerTime, but cant understand what that thing do... at least it is not freezing player position. Any ideas how to freeze player??? I'm using RAGEMP-Bootstrapper 1.1.3 P.S. Freeze player client side is bad idea.
  2. i see there is functions like : setHeadOverlay(); setHeadOverlayColor(); and maybe more... but i see only getHeadOverlay() to get overlay index; is there way to get overlay color, opacity and such ??
  3. Sorry. Problem was that i try to set position before player spawned
  4. i have code: GTANetworkAPI.NAPI.Util.ConsoleOutput("Position ->> " + wPlayer.Position.ToString()); GTANetworkAPI.NAPI.Entity.SetEntityPosition(wPlayer.Handle, new GTANetworkAPI.Vector3(402.8664, -996.4108, -99.00027)); GTANetworkAPI.NAPI.Util.ConsoleOutput("Position ->> " + wPlayer.Position.ToString()); and i'm getting Position ->> 0 0 0 Position ->> 402,8664 -996,4108 -99,00027 But player in game not moving Any ideas why ???
  5. Thank you Kopra for your time and reply. But mine proble is that i want event that i call from another serverside script. If i register RemoteEvent then (i think) i cant call it from another server side script. I tryed to use GTANetworkApi.NAPI.LocalEvent.Register but get no luck with that... propably my skill in C# to low. System.Reflection.MethodInfo zMethod = this.GetType().GetMethod("ClassMethod"); GTANetworkAPI.NAPI.LocalEvent.Register(zMethod, "ClassMethodEvent", this); GTANetworkAPI.NAPI.LocalEvent.TriggerEvent("ClassMethodEvent"); I get System.NullRefenceException on TriggerEvent.
  6. How to create custom event in one script (ServerSide) and cal it from another (ServerSide) script. Rage 1.1 Thank you for you time.
×
×
  • Create New...