Everything posted by 7katwoal12
-
Set vehicle damage
hello i was working and i have lost the code wich made a car spawn with damaged doors and windows. it was done with nativefunction. can someone help me? i have decompied my own code wich contains that part. here it is: NativeFunction.CallByName<uint>("SMASH_VEHICLE_WINDOW", new NativeArgument[2] { NativeArgument.op_Implicit((IHandleable) this.victim), NativeArgument.op_Implicit(0) }); NativeFunction.CallByName<uint>("SMASH_VEHICLE_WINDOW", new NativeArgument[2] { NativeArgument.op_Implicit((IHandleable) this.victim), NativeArgument.op_Implicit(1) }); NativeFunction.CallByName<uint>("SMASH_VEHICLE_WINDOW", new NativeArgument[2] { NativeArgument.op_Implicit((IHandleable) this.victim), NativeArgument.op_Implicit(-1) }); NativeFunction.CallByName<uint>("SET_VEHICLE_DOOR_OPEN", new NativeArgument[4] { NativeArgument.op_Implicit((IHandleable) this.victim), NativeArgument.op_Implicit(5), NativeArgument.op_Implicit(true), NativeArgument.op_Implicit(true) }); NativeFunction.CallByName<uint>("SET_VEHICLE_DOOR_OPEN", new NativeArgument[4] { NativeArgument.op_Implicit((IHandleable) this.victim), NativeArgument.op_Implicit(3), NativeArgument.op_Implicit(true), NativeArgument.op_Implicit(true) });
-
Display help only once
hi! im making a ped on fire callout and i have assigned the "T" key to call the firetruck. What i want to do is when i press the T key the displayed help dissapear. I have this code: Thanks for the support if (Game.LocalPlayer.Character.DistanceTo(suspect) < 25f) { Game.DisplayHelp("Press T to call firetruck"); } if (Game.LocalPlayer.Character.DistanceTo(suspect) < 25f && Game.IsKeyDown(Keys.T)) { Functions.RequestBackup(Game.LocalPlayer.Character.Position, LSPD_First_Response.EBackupResponseType.Code3, LSPD_First_Response.EBackupUnitType.Firetruck); }
-
Play Anmation
And how i can find animations?
-
Make ped drive a car
I have fixed it thanks. The problem was that the start point and the end point were the same. Thanks
-
Make ped drive a car
hi! i want a ped to drive a car. i have this code but it doesn't work. The car gets stopped in the spawn point. Thanks for the support this.suspect.Tasks.DriveToPosition(car, spawn1, 30, VehicleDrivingFlags.FollowTraffic, 1000); .
-
Spawn custom ped model
Okey thanks!
-
Spawn custom ped model
i dont decompile other's code.
-
Make suspect shooting on other peds
Okey thanks, but i dont know how to make the ped shoot on other civilians.
-
Make suspect shooting on other peds
Hi! I'm developing a subway terrorist attack callout and i want my suspect to shoot other peds. I have added this, but doesn't work. I hope you can help me with this! thanks. mySuspect.Inventory.GiveNewWeapon("WEAPON_CARABINERIFLE", (short) 100, true); mySuspect.Tasks.FightAgainstClosestHatedTarget(200f, 1);
-
Spawn custom ped model
Hi! I writte here to ask if someone knows how to spawn a custom ped, for example s_m_y_cop_01. I have this code but "op_implicit" doesn´t let me compile. I attach a screenshot of visual studio. this.mySuspect = new Ped(Model.op_Implicit("a_f_m_fatcult_01"), this.SpawnPoint, 61f);