Advertisement
LostProphet

TestEffect

Feb 5th, 2013
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.45 KB | None | 0 0
  1. public ScriptName()
  2. {
  3.     this.BindConsoleCommand("TestEffect", this.Command_TestEffect);
  4. }
  5.  
  6. private void Command_TestEffect(ParameterCollection args)
  7. {
  8.     string effectName = args[0];
  9.     Vector3 position = Game.LocalPlayer.Character.GetBonePosition(Bone.Head);
  10.    
  11.     int effect = GTA.Native.Function.Call<int>("START_PTFX", effectName, position.X, position.Y, position.Z, 0f, 0f, 0f, 1f);
  12. }
  13.  
  14. // Like this in console:
  15. // TestEffect ambient_flies_sparked
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement