Hi.
I would like to make a cleo that show some specific SAMP_Vehicule_ID on the minimap. (Exemple: For RP server, faction vehicules have constant samp_veh_id. so If [samp_veh_id] is stream then Show this [sam_veh_id] with position on the Minimap.
I have the car handle and the samp_veh_id, I need to show it on the map.
-------- First Try --------
I tried to do it with marker. It's cool but 32 marker is not enought and it's a mess when car pass from streamed to out stream.
------- Second Try -------
This Snippet can convert 3D Pos to 2D on screen http://ugbase.eu/snippets/convert-3d-position-to-2d-radar-screen-pos/
and show the samp_veh_id with it
03F0: enable_text_draw 1
0342: enable_text_draw_centered 1
0340: set_text_draw_RGBA 180 180 180 255
045A: draw_text_1number 1@ 2@ GXT 'NUMBER' number 3@ // ~1~
(with 1@ 2@ XY pos on screen and 3@ the samp veh id)
BUT, it's not enought Accurate because I can't configure it well. My RADAR_POS is approximatly good, as the Distance_multiplier, but their is a major problem: "When you are on car, the minimap ZOOM or UNZOOM so it fuck all the settings.
-------- Third try -----
I was thinking if their is any way to get the "MARKER POSITION ON THE MINIMAP". So the logic would be:
Put_marker_at_this_car.
Get the ON SCREEN coord of the marker to 1 2
Disable_marker_of_this_car
Draw [samp_veh_id] at 1 2
---- Fourth Try ----
Will be yours if you give me a solution to my problem.
I would like to make a cleo that show some specific SAMP_Vehicule_ID on the minimap. (Exemple: For RP server, faction vehicules have constant samp_veh_id. so If [samp_veh_id] is stream then Show this [sam_veh_id] with position on the Minimap.
I have the car handle and the samp_veh_id, I need to show it on the map.
-------- First Try --------
I tried to do it with marker. It's cool but 32 marker is not enought and it's a mess when car pass from streamed to out stream.
------- Second Try -------
This Snippet can convert 3D Pos to 2D on screen http://ugbase.eu/snippets/convert-3d-position-to-2d-radar-screen-pos/
and show the samp_veh_id with it
03F0: enable_text_draw 1
0342: enable_text_draw_centered 1
0340: set_text_draw_RGBA 180 180 180 255
045A: draw_text_1number 1@ 2@ GXT 'NUMBER' number 3@ // ~1~
(with 1@ 2@ XY pos on screen and 3@ the samp veh id)
BUT, it's not enought Accurate because I can't configure it well. My RADAR_POS is approximatly good, as the Distance_multiplier, but their is a major problem: "When you are on car, the minimap ZOOM or UNZOOM so it fuck all the settings.
-------- Third try -----
I was thinking if their is any way to get the "MARKER POSITION ON THE MINIMAP". So the logic would be:
Put_marker_at_this_car.
Get the ON SCREEN coord of the marker to 1 2
Disable_marker_of_this_car
Draw [samp_veh_id] at 1 2
---- Fourth Try ----
Will be yours if you give me a solution to my problem.