Heshan_Shalinda_eUnlock Posted October 6, 2021 Share Posted October 6, 2021 Hello someone please help me to fix this Quote -- Client Side Script -- local function open_event(wndid) local playerVehicle = getPedOccupiedVehicle ( source ) if ( playerVehicle ) then if setVehicleWindowOpen( playerVehicle, wndid, not isVehicleWindowOpen( playerVehicle, wndid ) ) then outputChatBox( "Driver Window Switched" ) else outputChatBox( "You don't have window!" ) end end end local function open_request() triggerServerEvent("onVehicleWindowOpenRequest", root, seatWindows[0]); end addCommandHandler("open", open_request) addEvent("open", true) addEventHandler( "open", localPlayer, open_event ) addEventHandler ( "onClientGUIClick", GUIEditor.button[13], open_request, false ) -- Server Side Script -- addEvent("onVehicleWindowOpenRequest", true); addEventHandler("onVehicleWindowOpenRequest", root, function(wndid) triggerClientEvent("open", client, wndid); end ); When I use this or when I click GUI Button of shutter open/close (switch shutter) it will only showing to the player who click GUI and other players around him do not show WindowState on my GUIClick. Need help to fix this Thank you. Link to comment
Heshan_Shalinda_eUnlock Posted October 7, 2021 Author Share Posted October 7, 2021 12 hours ago, Heshan_Shalinda_eUnlock said: Hello someone please help me to fix this When I use this or when I click GUI Button of shutter open/close (switch shutter) it will only showing to the player who click GUI and other players around him do not show WindowState on my GUIClick. Need help to fix this Thank you. Somebody please help me on this.... Link to comment
Heshan_Shalinda_eUnlock Posted October 7, 2021 Author Share Posted October 7, 2021 14 hours ago, Heshan_Shalinda_eUnlock said: Hello someone please help me to fix this When I use this or when I click GUI Button of shutter open/close (switch shutter) it will only showing to the player who click GUI and other players around him do not show WindowState on my GUIClick. Need help to fix this Thank you. Aren't there anyone to help me please 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