Jump to content

Recommended Posts

Posted

Hi everyone

Can someone answer me how create peds in c#?

NAPI.Ped.CreatePed (serverside) is not working

How to do this in client side (c#)?  exampe pls

RAGE.Game.Ped.CreatePed(int pedType, uint modelHash, float x, float y, float z, float heading, bool isNetwork, bool p7)

and what is "isNetwork", "p7"?

Posted
В 05.08.2019 в 10:40, mDenis16 сказал:

NAPI.Ped.CreatePed isnt impelmented yet

you need to create it in clientside and sync it for all players

read my message again ty

Posted
1 час назад, draobrehtom сказал:

Server side:


mp.players.call("createPed")


Client side:


mp.events.add("createPed", () => {
	let ped = mp.peds.new(...);
});

// ... and so on

 

 

В 03.08.2019 в 07:57, catchme сказал:

How to do this in client side (c#)?  exampe pls

 

Posted

Did you try instantiating the Ped class like this?

RAGE.Elements.Ped myPed = new RAGE.Elements.Ped(uint model, Vector3 position, [float heading = 0], [uint dimension = 0]);

 

  • Like 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...