Resource icon

CLEO Release Vehicle Finder 0.3.7

CLEO related
Status
Not open for further replies.

_=Gigant=_

Well-known member
Joined
Mar 21, 2017
Messages
353
Reaction score
16
here you can see how it looks >> https://s33.postimg.cc/phrh7wzfz/sa-mp-172_2.png

so simple it draws lines to cars and shows their id, name, and distance from you

for on&off type /vhfinder 

tested on samp 0.3.7 r1 with sampfuncs 5.3.3 and cleo 4.3

[attachment=5551]
 

Attachments

  • Vehicle Finder.cs
    19.4 KB · Views: 549

Vurix

Member
Joined
Jun 17, 2018
Messages
5
Reaction score
0
Before i activate this cleo i have like 150fps, but when i type /vhinfo my fps drops to 20-30. Is this just bad optimized cleo or my PC is potato? :d
 

_=Gigant=_

Well-known member
Joined
Mar 21, 2017
Messages
353
Reaction score
16
Vurix said:
Before i activate this cleo i have like 150fps, but when i type /vhinfo my fps drops to 20-30. Is this just bad optimized cleo or my PC is potato? :d

of course it will eat some fps depends on how much vehicles are on your screen, more vehicles > more info text > eats more fps
 

_=Gigant=_

Well-known member
Joined
Mar 21, 2017
Messages
353
Reaction score
16
ItsYaBoii32 said:
Good idea I am gong to use this for my playerfinder

ye you can create something like police detector https://s22.postimg.cc/5vhxvcybl/sa-mp-180.png

[attachment=5578] /copdetect
 

Attachments

  • Police Detector.cs
    19.8 KB · Views: 37

Drunk

Member
Joined
Aug 28, 2016
Messages
6
Reaction score
0
I have a problem , whenever i install sampfunc 5 it will load the single player and not multiplayer , mind helping ?
 

_=Gigant=_

Well-known member
Joined
Mar 21, 2017
Messages
353
Reaction score
16
Drunk said:
I have a problem , whenever i install sampfunc 5 it will load the single player and not multiplayer , mind helping ?

install samp 0.3.7 R1
 

Romzes

New member
Joined
Feb 20, 2016
Messages
4
Reaction score
0
Code:
[05:52:41] Warning(s007): Exception 0xC0000005 at 0x65655188
[05:52:41] Warning(s007): Exception 0xC0000005 at 0x6564FD18
[05:52:41] Warning(s007): Exception 0xC0000005 at 0x6564FD18
[05:52:41] Warning(s007): Exception 0xC0000005 at 0x6564FD18
[05:52:41] Warning(s007): Exception 0xC0000005 at 0x6564FD18
[05:52:41] Warning(s007): Exception 0xC0000005 at 0x6564FD18
[05:52:41] Warning(s007): Exception 0xC0000005 at 0x6564FD18
[05:52:41] Warning(s007): Exception 0xC0000005 at 0x6564FD18
[05:52:41] Warning(s007): Exception 0xC0000005 at 0x6564FD18
[05:52:41] Warning(s007): Exception 0xC0000005 at 0x6564FD18
[05:52:41] Warning(s007): Exception 0xC0000005 at 0x6564FD18

How to fix it?
Cleo: 4.3.22
SAMPFUNCS: 5.3.3
Samp: 0.3.7 R1
 

Romzes

New member
Joined
Feb 20, 2016
Messages
4
Reaction score
0
Code:
[05:52:41] Warning(s007): Exception 0xC0000005 at 0x65655188
[05:52:41] Warning(s007): Exception 0xC0000005 at 0x6564FD18
[05:52:41] Warning(s007): Exception 0xC0000005 at 0x6564FD18
[05:52:41] Warning(s007): Exception 0xC0000005 at 0x6564FD18
[05:52:41] Warning(s007): Exception 0xC0000005 at 0x6564FD18
[05:52:41] Warning(s007): Exception 0xC0000005 at 0x6564FD18
[05:52:41] Warning(s007): Exception 0xC0000005 at 0x6564FD18
[05:52:41] Warning(s007): Exception 0xC0000005 at 0x6564FD18
[05:52:41] Warning(s007): Exception 0xC0000005 at 0x6564FD18
[05:52:41] Warning(s007): Exception 0xC0000005 at 0x6564FD18
[05:52:41] Warning(s007): Exception 0xC0000005 at 0x6564FD18


Как это исправить?
Клео:  4.3.22
SAMPFUNCS: 5.3.3
Samp: 0.3.7 R1
 

Romzes

New member
Joined
Feb 20, 2016
Messages
4
Reaction score
0
[05:52:41] Warning(s007): Exception 0xC0000005 at 0x65655188
[05:52:41] Warning(s007): Exception 0xC0000005 at 0x6564FD18
[05:52:41] Warning(s007): Exception 0xC0000005 at 0x6564FD18
[05:52:41] Warning(s007): Exception 0xC0000005 at 0x6564FD18
[05:52:41] Warning(s007): Exception 0xC0000005 at 0x6564FD18
[05:52:41] Warning(s007): Exception 0xC0000005 at 0x6564FD18
[05:52:41] Warning(s007): Exception 0xC0000005 at 0x6564FD18
[05:52:41] Warning(s007): Exception 0xC0000005 at 0x6564FD18
[05:52:41] Warning(s007): Exception 0xC0000005 at 0x6564FD18
[05:52:41] Warning(s007): Exception 0xC0000005 at 0x6564FD18
[05:52:41] Warning(s007): Exception 0xC0000005 at 0x6564FD18

How to fix it?

Cleo: 4.3.22
SAMPFUNCS: 5.3.3
Samp: 0.3.7 R1
 

_=Gigant=_

Well-known member
Joined
Mar 21, 2017
Messages
353
Reaction score
16
niume123456 said:
But if Server version is R2 ? what to do?

this mod requires sampfuncs and sampfuncs isn't updated to R2 so it won't work
 

_=Gigant=_

Well-known member
Joined
Mar 21, 2017
Messages
353
Reaction score
16
LopezZ said:
Can you add the function to see the id of the car?

/vhinfo

[attachment=5682]


or if you want for c++ 

Code:
void renderVehicleInfo()
{
	traceLastFunc("renderVehicleInfo()");


	if (gta_menu_active())
		return;

	if (cheat_state->_generic.cheat_panic_enabled)
		return;

	// Exit this function and enable samp nametags, if panic key


	if (!g_dwSAMP_Addr || !g_SAMP || !g_Players)
		return;


	// don't run if the CGameSA doesn't exist
	if (!pGameInterface)
		return;


	// don't run if we don't exist
	if (isBadPtr_GTA_pPed(pPedSelf))
		return;

		for (int i = 0; i < SAMP_MAX_VEHICLES; i++)
		{
			vehicle_info *vehicle = getGTAVehicleFromSAMPVehicleID(i);
			const struct vehicle_entry	*evehicle;

			if (!vehicle)
				continue;

			if (g_Vehicles->iIsListed[i] != 1)
				continue;

			D3DXVECTOR3 vehicle_pos, screenposs;

			float * f_pos = &vehicle->base.matrix[4 * 3];
			vehicle_pos.x = f_pos[0];
			vehicle_pos.y = f_pos[1];
			vehicle_pos.z = f_pos[2];
			CalcScreenCoors(&vehicle_pos, &screenposs);

			char buf[256]; 
			char pos[256], ping[256], hparmw[256];


			evehicle = gta_vehicle_get_by_id(g_Vehicles->pSAMP_Vehicle[i]->pGTA_Vehicle->base.model_alt_id);

			if (NewSobeit->bVehicleInfo)
			{

				if (screenposs.z < 1.f)
					continue;

			_snprintf_s(buf, sizeof(buf) - 1, "{C235DD}Vehicle{FFFFFF} %s Model %d", evehicle->name, evehicle->id);
			pD3DFont_sampStuff->PrintShadow(screenposs.x, screenposs.y - 38, COLOR_WHITE(255), buf);

			_snprintf_s(hparmw, sizeof(hparmw) - 1, "{F0FF0F}Health{FFFFFF} %d{FF0F0F} Explode Timer{FFFFFF} %0.0f/2276", (int)(g_Vehicles->pSAMP_Vehicle[i]->pGTA_Vehicle->hitpoints /10), g_Vehicles->pSAMP_Vehicle[i]->pGTAEntity->burn_timer);
			pD3DFont_sampStuff->PrintShadow(screenposs.x, screenposs.y - 26, COLOR_WHITE(255), hparmw);

			_snprintf_s(ping, sizeof(ping) - 1, "{F0FF0F}Passanger Seats{FFFFFF} <%d> {00FF00} Distance{FFFFFF} %.0f m", g_Vehicles->pSAMP_Vehicle[i]->pGTA_Vehicle->m_nMaxPassengers, GetDistance(D3DXVECTOR3(vehicle_pos.x, vehicle_pos.y, vehicle_pos.z)));
			pD3DFont_sampStuff->PrintShadow(screenposs.x, screenposs.y - 14, COLOR_WHITE(255), ping);

			_snprintf_s(pos, sizeof(pos) - 1, "Pos X %0.02f Y %0.02f Z %0.02f", vehicle_pos.x, vehicle_pos.y, vehicle_pos.z);
			pD3DFont_sampStuff->PrintShadow(screenposs.x, screenposs.y, COLOR_WHITE(255), pos);

		}
	}
}
 

Attachments

  • Vehicles Info.cs
    22.4 KB · Views: 50
Status
Not open for further replies.
Top