Ped Controller
Create an in-world static pedestrian.
ServerPedController
Create an in-world static pedestrian. They do not move, they cannot move, and they will not move.
All players can see 'variations' of the pedestrian.
Example - World
const ped: IPed = {
uid: `ped-${Math.floor(Math.random() * 500000)}`,
model: 'u_f_m_casinocash_01',
pos: {
x: player.pos.x,
y: player.pos.y,
z: player.pos.z - 1,
},
};
Athena.controllers.ped.append(ped);Example - Single User
Keep in mind you should have a player reference to use this
Play Animations for a Ped
Last updated