syedosman Posted January 24, 2015 Posted January 24, 2015 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...
Mann56 Posted January 24, 2015 Posted January 24, 2015 (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 January 24, 2015 by Guest
TAPL Posted January 24, 2015 Posted January 24, 2015 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.
Mann56 Posted January 24, 2015 Posted January 24, 2015 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now