Player::taskSetBlockingOfNonTemporaryEvents

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

I cant believe I have to define this, this is one of the best natives.

It makes the ped ignore basically all shocking events around it. Occasionally the ped may comment or gesture, but other than that they just continue their daily activities. This includes shooting and wounding the player. And - most importantly - they do not flee.

Since it is a task, every time the native is called the ped will stop for a moment.

Syntax

player.taskSetBlockingOfNonTemporaryEvents(toggle);

Required Arguments

  • toggle: Boolean

Return value

  • Undefined

Example

// todo

See also