Jump to content

I made a bank rob but there is a little problem


scolen

Recommended Posts

22 minutes ago, scolen said:

give example

 

local bomb = createObject(935,x,y,z)
local a = createMarker(x,y,z,"checkpoint",2.5)

function MarkerHit ( hitPlayer, matchingDimension )
	if hitPlayer == localPlayer and source == a then 
    	if isElement(bomb) then 
      		destoryElement(bomb)
      		bomb = nil
    	end
    end 
end
addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHit )

 

  • Thanks 1
Link to comment
11 hours ago, FlorinSzasz said:
local bomb = createObject(935,x,y,z)
local a = createMarker(x,y,z,"checkpoint",2.5)

function MarkerHit ( hitPlayer, matchingDimension )
	if hitPlayer == localPlayer and source == a then 
    	if isElement(bomb) then 
      		destoryElement(bomb)
      		bomb = nil
    	end
    end 
end
addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHit )

 

Please help me with this post https://forum.multitheftauto.com/topic/140811-bank-rob-script-and-there-is-a-big-problem/#comment-1022259

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