LukasAws Posted July 26, 2020 Share Posted July 26, 2020 Easy question. What opcode is used to place a target marker at some coordinates? (that marker that you can place anywhere on the "map" menu) Link to comment Share on other sites More sharing options...
ZAZ Posted July 26, 2020 Share Posted July 26, 2020 no opcode, it's hardcoded CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
OrionSR Posted July 27, 2020 Share Posted July 27, 2020 Maybe these codes can produce the desired effect. const // TargetMarkerOffset = 72 // mobile // TargetBlipE = [email protected] // "gMobileMenu" +0x48 TargetBlipE = 0xBA6774 // PC Sprite_Player_target=41 BlipOnly = 2 end :Remove_Target_Marker 0A8D: [email protected] = read_memory TargetBlipE size 4 virtual_protect 0 // TargetBlip handle if 075C: does_blip_exist [email protected] then 0164: remove_blip [email protected] 0A8C: write_memory TargetBlipE size 4 value 0 virtual_protect 0 // clear handle for next blip end :Add_Target_Marker 02A8: [email protected] = add_sprite_blip Sprite_Player_target at -1449.87 2591.85 54.8378 // long range blip 018B: change_blip_display [email protected] to BlipOnly 0A8C: write_memory TargetBlipE size 4 value [email protected] virtual_protect 0 // give menu control of blip handle Link to comment Share on other sites More sharing options...
LukasAws Posted July 27, 2020 Author Share Posted July 27, 2020 20 hours ago, OrionSR said: Maybe these codes can produce the desired effect. const // TargetMarkerOffset = 72 // mobile // TargetBlipE = [email protected] // "gMobileMenu" +0x48 TargetBlipE = 0xBA6774 // PC Sprite_Player_target=41 BlipOnly = 2 end :Remove_Target_Marker 0A8D: [email protected] = read_memory TargetBlipE size 4 virtual_protect 0 // TargetBlip handle if 075C: does_blip_exist [email protected] then 0164: remove_blip [email protected] 0A8C: write_memory TargetBlipE size 4 value 0 virtual_protect 0 // clear handle for next blip end :Add_Target_Marker 02A8: [email protected] = add_sprite_blip Sprite_Player_target at -1449.87 2591.85 54.8378 // long range blip 018B: change_blip_display [email protected] to BlipOnly 0A8C: write_memory TargetBlipE size 4 value [email protected] virtual_protect 0 // give menu control of blip handle I will for sure try that. Thank you Link to comment Share on other sites More sharing options...
LukasAws Posted July 28, 2020 Author Share Posted July 28, 2020 On 7/27/2020 at 3:11 AM, OrionSR said: Maybe these codes can produce the desired effect. const // TargetMarkerOffset = 72 // mobile // TargetBlipE = [email protected] // "gMobileMenu" +0x48 TargetBlipE = 0xBA6774 // PC Sprite_Player_target=41 BlipOnly = 2 end :Remove_Target_Marker 0A8D: [email protected] = read_memory TargetBlipE size 4 virtual_protect 0 // TargetBlip handle if 075C: does_blip_exist [email protected] then 0164: remove_blip [email protected] 0A8C: write_memory TargetBlipE size 4 value 0 virtual_protect 0 // clear handle for next blip end :Add_Target_Marker 02A8: [email protected] = add_sprite_blip Sprite_Player_target at -1449.87 2591.85 54.8378 // long range blip 018B: change_blip_display [email protected] to BlipOnly 0A8C: write_memory TargetBlipE size 4 value [email protected] virtual_protect 0 // give menu control of blip handle Oh. My. God. You are AWESOME It works perfectly. just need to fix my code just a bit and the masterpiece will be done. Thank you kind man Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now