Jump to content

Can someone help me creating this script? (if its possible at all)


bencskrisz

Recommended Posts

Posted

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 :|

Posted (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 by Avival

My discord: Armisael_#1719

 Did my help work for you? Don't forget to thank 

¿Mi ayuda funcionó para ti? No olvides agradecer

How give thanks

 

 

 

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...