Sign in to follow this  
catchme

Peds Create

Recommended Posts

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"?

Share this post


Link to post
Share on other sites

NAPI.Ped.CreatePed isnt impelmented yet

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

Share this post


Link to post
Share on other sites
В 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

Share this post


Link to post
Share on other sites

Server side:

mp.players.call("createPed")


Client side:

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

// ... and so on

 

Share this post


Link to post
Share on other sites
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

 

Share this post


Link to post
Share on other sites

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]);

 

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.