Jump to content

Game Gui Problem


Recommended Posts

Posted

Hello Guys,

i fixxed all my least problems but i have a problem/question with/about Gameguids...

I want create a Edit Box in which i cant writte only numbers (integer). Is this doable?

And if i writte in my EditBox the Word "Tockra" the game open the chat by the"T" of Tockra, how can i disable it ?

I hope you can help me...

h32yhix1ossu.png
Posted
guiSetInputEnabled will stop 't' from opening the chat box (and other things)

To only allow numbers in an edit box, i think you would need to check the text in onClientGUIChanged and remove anything that isnt a number yourself

Ah thx

One other question, how can i kick a player about a client side script?

h32yhix1ossu.png
Posted

trigger event handler to server, then server should kick player

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted
trigger event handler to server, then server should kick player

? How? I found no client side command or event to kick a player

h32yhix1ossu.png
Posted
trigger event handler to server, then server should kick player

? How? I found no client side command or event to kick a player

i told you to TRIGGER SERVER event..

-- click function name to go to the wiki for help
-- on the serverside you need:
addEvent
addEventHandler
-- on the clientside you need:
triggerServerEvent

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted
Its not a example dude its a Request :?

Theres a good example at Wiki, try it BEFORE asking for existing examples

okey then tell me how i can find an good example in the wiki, because i have no idea how i can make it, because this i ask you ^^

h32yhix1ossu.png
Posted
Its not a example dude its a Request :?

Theres a good example at Wiki, try it BEFORE asking for existing examples

okey then tell me how i can find an good example in the wiki, because i have no idea how i can make it, because this i ask you ^^

i told you..

CLICK on the function names in posts above..

or here

-- CLICK BELOW VVV
triggerServerEvent
-- CLICK ABOVE ^^^

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...