Black2 Posted August 12, 2015 Posted August 12, 2015 how i do to player in vehicle can't hit pickup ? Can edit for me ? Thx. local pickup1000 = createPickup ( -323.20020, 1054.82104, 19.7421, 3, 1239, 0 ) GUIEditor = { button = {}, window = {}, memo = {} } local function clientPickupHit(thePlayer, matchingDimension) windows1000 = guiCreateWindow(171, 151, 280, 439, "Info", false) guiWindowSetSizable(windows1000, false) memo1000 = guiCreateMemo(20, 36, 240, 354, "Ls Jefferson Hospital Info", false, windows1000) button1000 = guiCreateButton(53, 397, 165, 32, "Close", false, windows1000) showCursor(true) end addEventHandler("onClientPickupHit", pickup1000, clientPickupHit) addEventHandler("onClientGUIClick", guiRoot, function () if (source == button1000) then guiSetVisible (windows1000,false) showCursor(false) end end)
HUNGRY:3 Posted August 12, 2015 Posted August 12, 2015 function nope(thePlayer) if isPedInVehicle(thePlayer) then cancelEvent() end end addEventHandler("onPlayerPickupHit",root,nope) Server side
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