Jump to content

gui


syedosman

Recommended Posts

Posted

i have made a fuel system in which i have put markers near fuel station but even if player is entering its showing gui.if the player is in vehicle only it should show the fuel gui...

Posted (edited)
if isPedInVehicle(thePlayer) then 
guiSetVisible(your GUI , true) 
showCursor(true) 
else 
outputChatBox("You must be in a Vehicle",255,0,0) 
end 

Add this in your client

Edited by Guest
Posted
if isPedInVehicle(thePlayer) then 
guiSetVisible(your GUI , true) 
showCursor(true) 
else 
outputChatBox("You must be in a Vehicle",getRootElement(),255,0,0) 
end 

Add this in your client

outputChatBox client side does not have visibleTo argument.

Posted
if isPedInVehicle(thePlayer) then 
guiSetVisible(your GUI , true) 
showCursor(true) 
else 
outputChatBox("You must be in a Vehicle",getRootElement(),255,0,0) 
end 

Add this in your client

outputChatBox client side does not have visibleTo argument.

Ohh sorry edited it. :mrgreen:

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