Quantcast

Jump to content

» «
Photo

[C#] ENABLE_CLOWN_BLOOD_VFX and ENABLE_ALIEN_BLOOD_VFX don't work

1 reply to this topic
andre500
  • andre500

    Crazy Coder

  • Members
  • Joined: 02 Nov 2014
  • Russia

#1

Posted 3 weeks ago

Hi guys. I can't activate ENABLE_CLOWN_BLOOD_VFX and ENABLE_ALIEN_BLOOD_VFX functions, blood particles aren't displaying. What am I doing wrong?

using GTA;
using GTA.Native;
using GTA.Math;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Reflection;
using System.Windows.Forms;

public class myFirstScript : Script
{
	public myFirstScript()
	{
		KeyDown += onkeydown;
	}

	public void PrintText(string text, int time)
	{
		GTA.Native.Function.Call(GTA.Native.Hash._0xB87A37EEB7FAA67D, "STRING");
		GTA.Native.Function.Call(GTA.Native.Hash._ADD_TEXT_COMPONENT_STRING, text);
		GTA.Native.Function.Call(GTA.Native.Hash._0x9D77056A530643F6, time, 1);
	}

	void onkeydown(object sender, KeyEventArgs e)
	{
		if (e.KeyCode == Keys.K)
		{
			GTA.Native.Function.Call(GTA.Native.Hash._0xD821490579791273, true);
			PrintText("Activated!", 2000);
		}
		else if (e.KeyCode == Keys.J)
		{
			GTA.Native.Function.Call(GTA.Native.Hash._0xD821490579791273, false);
			PrintText("Deactivated!", 2000);
		}
	}
} 

FUNCIONS:

void ENABLE_CLOWN_BLOOD_VFX(BOOL toggle) // D821490579791273 C61C75E9

void ENABLE_ALIEN_BLOOD_VFX(BOOL Toggle) // 9DCE1F0F78260875 CE8B8748

 

Both functions are used in "Grass Roots Trevor" and "Grass Roots Michael".


sollaholla
  • sollaholla

    C# Dev.

  • Members
  • Joined: 19 May 2016
  • United-States

#2

Posted 3 weeks ago

I don't think these actually do what you'd think they do. They most likely simply enable the particle effects associated with blood for clowns / aliens. You'll have to manually spawn the blood particles yourself, I believe.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users