LOCATE CHAR ON FOOT 3D

From GTAMods Wiki
Jump to navigation Jump to search
LOCATE_CHAR_ON_FOOT_3D
Number of parameters: 8
Parameter #TypeDescription
1.HandlePed Handle
2.floatx coordinate
3.floaty coordinate
4.floatz coordinate
5.floatbase width/lenght
6.floatbase width/lenght
7.floatheight
8.boolis marker visble?
Return value:
TypeDescription
boolReturns true if the ped is within the specified space

Description

This function constantly checks if a characther is whitin the specified space. If the last parameter is set to true (1) it draws a mission marker.

GTAIV Marker.png

Example

/*This function must be in a loop and the parameter inside Wait(...) must be 0.
If it isn't 0 the marker will flicker*/

while(IsThreadAlive())
{
		if(LocateCharOnFoot3D(niko, x, y, 15.0f, 0.7f, 0.7f, 0.7f, 1))
		{
			//Do something
		}
		Wait(0);
}