SpoofPed

Enable or disable server-side ped spoofing. When enabled, queues a one-time ped change; spoof stays active until disabled.

Syntax

Susano.SpoofPed(pedHash, spoofServer) -> boolean

Parameters

pedHash (number|uint32): Target ped model hash.

spoofServer (boolean):

  • true: enable server spoof and queue ped change to pedHash.

  • false: disable server spoof. No model change queued.

Return(s)

boolean: true on success. Throws Lua error on failure.

Behavior

Call with (hash, true) to switch ped and mark spoof as server-driven. The spoof persists across ticks until you disable it.

Call with (_, false) to turn spoof off. Does not modify the current model.

Example(s)

Last updated