class Brain
package fivem.client.natives
Static methods
staticaddScriptToRandomPed(name:String, model:Int, p2:Float, p3:Float):Dynamic
BRAIN::ADD_SCRIPT_TO_RANDOM_PED("pb_prostitute", ${s_f_y_hooker_01}, 100, 0);
- Nacorpio
-----
Hardcoded to not work in Multiplayer.staticdisableScriptBrainSet(brainSet:Int):Dynamic
staticenableScriptBrainSet(brainSet:Int):Dynamic
staticisObjectWithinBrainActivationRange(object:Dynamic):Bool
staticisWorldPointWithinBrainActivationRange():Bool
Gets whether the world point the calling script is registered to is within desired range of the player. staticregisterObjectScriptBrain(scriptName:String, modelHash:Int, p2:Int, activationRange:Float, p4:Int, p5:Int):Dynamic
Registers a script for any object with a specific model hash.
BRAIN::REGISTER_OBJECT_SCRIPT_BRAIN("ob_telescope", ${prop_telescope_01}, 100, 4.0, -1, 9);