Tokio

[BUG] How to fix this bug in my script?

Recommended Posts

this is the code(not the full code): 

function markerbelepkocsival()
if isPedInVehicle ( localPlayer ) then
local playerVehicle = getPlayerOccupiedVehicle ( localPlayer )
addEventHandler("onClientRender", root, paynspray1)
addEventHandler("onClientRender", root, paynspray2)
addEventHandler("onClientRender", root, paynspray4)
		guiSetVisible(GUIEditor.button[1], true)
		guiSetVisible(GUIEditor.button[2], true)
		guiSetVisible(GUIEditor.button[3], true)
	setElementFrozen ( playerVehicle, true )
		playSound("1.mp3")

showChat(false)
showCursor(true)
end
end
addEventHandler ( "onClientMarkerHit", merker1, markerbelepkocsival )

when i hit the marker, the panel will appear to everyone.. how to fix this? :c

Share this post


Link to post
function markerbelepkocsival(hitter)
	if hitter == localPlayer then
    	-- if isPedIn...
    end
 end

 

Edited by Enargy,
  • Thanks 1

Share this post


Link to post

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.