bencskrisz Posted January 2, 2020 Share Posted January 2, 2020 So I'd need a script what with typing a command would make a blip appear in a random position on the map (and radar) and if you reach it ,it disappears. Is it possible to make at all Link to comment
Motar2k Posted January 2, 2020 Share Posted January 2, 2020 (edited) --SAVING POSITION IN TABLE local Blip_Pos = { --[ID] = {x,y,z} [1] = {123,123,123}, [2] = {0,0,0}, } --GETTING RANDOM POSITION local lucky = math.random(#Blip_Pos) local x,y,z = Blip_Pos[lucky][1], Blip_Pos[lucky][2], Blip_Pos[lucky][3] --Function to create a blip createBlip --Function to create a Marker createMarker --Event to detect when they reach the blip onMarkerHit --Function to destroy marker and blip destroyElement Edited January 2, 2020 by Avival Link to comment
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