หมุน Ped ให้หันหน้าไปยังตำแหน่งที่กำหนด
ped (entity): Ped ที่ต้องการหมุนcoords (vector3): ตำแหน่งเป้าหมายRotateToCoords(ped, coords)
เล่นอนิเมชันภายในของระบบ Dungeon
ped (entity): Ped ที่ต้องการให้เล่นอนิเมชันanimType (string): ประเภทอนิเมชัน เช่น basic, protego, ultimatespeed (number): ความเร็วของอนิเมชัน ยิ่งค่าสูงยิ่งเร็วmetadata (table): ข้อมูลเพิ่มเติมของอนิเมชัน ไม่จำเป็นต้องส่งค่าPlayInternalAnimation(PlayerPedId(), "basic", 6, {index = 1})
-- basic จะมี index 1-6
PlayInternalAnimation(PlayerPedId(), "protego", 10)
PlayInternalAnimation(PlayerPedId(), "ultimate", 2)
เล่น Particle Effect แบบ Non-looped หลายรายการพร้อมกัน ณ ตำแหน่งที่กำหนด
effects (table): รายการ Effect ที่ต้องการเล่นcoords (vector3): ตำแหน่งที่ต้องการให้ Effect แสดงlocal effects = {
{ dict = "core", name = "sp_foundry_sparks", scale = 2.0 },
{ dict = "core", name = "veh_sub_crush", scale = 2.0 },
}
PlayNonLoopedPtfxsAtCoord(effects, vector3(123, 456, 78))
ตรวจสอบว่า Ped อยู่ในระยะที่กำหนดหรือไม่
ped (entity): Ped ที่ต้องการตรวจสอบcoords (vector3): จุดศูนย์กลางsize (number): ระยะตรวจสอบlocal isInRadius = IsPlayerInRadius(ped, coords, size)