Jump to content

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


bencskrisz

Recommended Posts

--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
Link to comment

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