hash_ Posted March 24, 2022 Posted March 24, 2022 im struggling with this blip.destroy is not working so as mp.game.ui.removeblip
Kopra Posted March 26, 2022 Posted March 26, 2022 Use mp.blips api Blip::Blip - RAGE Multiplayer Wiki
hash_ Posted March 29, 2022 Author Posted March 29, 2022 Nothing here I have a function set server-side to remove it but when the player disconnects the function isn't getting called
hash_ Posted March 29, 2022 Author Posted March 29, 2022 (edited) Server side OnPlayerDisconnected event NAPI.ClientEvent.TriggerClientEvent(player, "DestroyTurfs"); This is under ClientSide : mp.events.add("DestroyTurfs",clearBlips); function clearBlips() { mp.events.callRemote("TestEvent"); mp.game.invoke("0xB98236CAAECEF897", true); let last_blip = mp.game.invoke("0x1BEDE233E6CD2A1F", 5); while (mp.game.invoke("0xA6DB27D19ECBB7DA", last_blip)) { mp.game.ui.removeBlip(last_blip) last_blip = mp.game.invoke("0x14F96AA50D6FBEA7", 5); } DestroyTurfs(); mp.game.wait(50) } function DestroyTurfs() //Setting the zone to an invesible blip { for(var i = 0; i<zones.length; i++) mp.game.invoke("0xDF735600A4696DAF", zones[i], 3) } The clearBlips function is found on this thread ,i did not make it The function is never called when the player disconnects actually but i tried putting it under OnPlayerConencted and it worked and got called Edited March 29, 2022 by hash_
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