syedosman Posted January 24, 2015 Share 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... Link to comment
Mann56 Posted January 24, 2015 Share 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 Link to comment
TAPL Posted January 24, 2015 Share 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. Link to comment
Mann56 Posted January 24, 2015 Share 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. Link to comment
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