jugew Posted March 31, 2019 Share Posted March 31, 2019 let waypoint; mp.events.add('render', () => { // Waypoint if (waypoint !== mp.game.invoke('0x1DD1F58F493F1DA5')) { waypoint = mp.game.invoke('0x1DD1F58F493F1DA5'); let blipIterator = mp.game.invoke('0x186E5D252FA50E7D'); let FirstInfoId = mp.game.invoke('0x1BEDE233E6CD2A1F', blipIterator); let NextInfoId = mp.game.invoke('0x14F96AA50D6FBEA7', blipIterator); for (let i = FirstInfoId; mp.game.invoke('0xA6DB27D19ECBB7DA', i) != 0; i = NextInfoId) { if (mp.game.invoke('0xBE9B0959FFD0779B', i) == 4 ) { var coord = mp.game.ui.getBlipInfoIdCoord(i); mp.events.call("playerCreateWaypoint", coord, Boolean(waypoint)); mp.events.callRemote("playerCreateWaypoint", JSON.stringify(coord), Boolean(waypoint)); }; }; }; }); Client-side mp.events.add('playerCreateWaypoint', (position, toogle) => { console.log(position, toogle); }); Server-side mp.events.add('playerCreateWaypoint', (player, position, toogle) => { console.log(position, toogle); }); 2 Link to comment Share on other sites More sharing options...
Kar Posted April 1, 2019 Share Posted April 1, 2019 How about just using a keybind? Link to comment Share on other sites More sharing options...
lopatindd Posted August 15, 2019 Share Posted August 15, 2019 Thanks a lot guy! You helped me a lot! Now I can tell the taxi drivers where I need to go without any words! Link to comment Share on other sites More sharing options...
xshady Posted January 12, 2020 Share Posted January 12, 2020 Thanks a lot!😀 Link to comment Share on other sites More sharing options...
DjuankixX Posted April 29, 2020 Share Posted April 29, 2020 On 4/1/2019 at 1:58 AM, jugew said: let waypoint; mp.events.add('render', () => { // Waypoint if (waypoint !== mp.game.invoke('0x1DD1F58F493F1DA5')) { waypoint = mp.game.invoke('0x1DD1F58F493F1DA5'); let blipIterator = mp.game.invoke('0x186E5D252FA50E7D'); let FirstInfoId = mp.game.invoke('0x1BEDE233E6CD2A1F', blipIterator); let NextInfoId = mp.game.invoke('0x14F96AA50D6FBEA7', blipIterator); for (let i = FirstInfoId; mp.game.invoke('0xA6DB27D19ECBB7DA', i) != 0; i = NextInfoId) { if (mp.game.invoke('0xBE9B0959FFD0779B', i) == 4 ) { var coord = mp.game.ui.getBlipInfoIdCoord(i); mp.events.call("playerCreateWaypoint", coord, Boolean(waypoint)); mp.events.callRemote("playerCreateWaypoint", JSON.stringify(coord), Boolean(waypoint)); }; }; }; }); Client-side mp.events.add('playerCreateWaypoint', (position, toogle) => { console.log(position, toogle); }); Server-side mp.events.add('playerCreateWaypoint', (player, position, toogle) => { console.log(position, toogle); }); how to install this??? Link to comment Share on other sites More sharing options...
Werp Posted November 9, 2020 Share Posted November 9, 2020 Its really owesome! Ty a lot. But can u comment ur code, pls ? Want to understand how is it works... 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