natives.setCharDecisionMaker

From GTA Connected
Jump to navigation Jump to search

Function Client Only icon-iv.png Online and Offline

Available since Client 1.0.0

void natives.setCharDecisionMaker(int ped, int decisionMakerId)

The natives.setCharDecisionMaker function is used to Assigns a decision maker to a ped, which controls how the ped reacts to threats, combat, and ambient events.

Parameters

1) int ped The ped handle.
2) int decisionMakerId The decision maker ID that defines the ped’s AI behavior.

Return

void This function doesn't return a value.

Notes

Examples

Example 1 - JavaScript:

addCommandHandler("setdm", function(command, params, client) {

       natives.setCharDecisionMaker(ped, 4);
   }

});

Compatibility

There isn't any compatibility information for this function.