VenomOG Posted February 10, 2018 Share Posted February 10, 2018 Hey how to make a DX box a button and when I click the button the DX panel closes any help? Link to comment
URBAN Posted February 10, 2018 Share Posted February 10, 2018 https://wiki.multitheftauto.com/wiki/IsMouseInPosition and bindKey Link to comment
VenomOG Posted February 10, 2018 Author Share Posted February 10, 2018 Okey lets say in Server side when i click "Accept" button it removes a player from Jail and he has to pay a Fine of his charges? any help and ALso when i click Accept the panel disappeares Link to comment
NeXuS™ Posted February 10, 2018 Share Posted February 10, 2018 This has to be client-sided, as you can only use dx functions on client-side. You'll have to use triggerServerEvent for the setPlayerMoney, as it has to be synchronized. For the panel, Drawing functions. To detect the click, onClientClick and isMouseInPosition. Link to comment
Scripting Moderators thisdp Posted February 11, 2018 Scripting Moderators Share Posted February 11, 2018 Why not seek a dx lib? 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