sagi100 Posted April 7, 2018 Posted April 7, 2018 hello , can some one help to crate code of minimized with time some like it : sadad minimized [20:15:32] please
DNL291 Posted April 7, 2018 Posted April 7, 2018 Use: onClientMinimize getRealTime Please do not PM me with scripting related question nor support, use the forums instead.
sagi100 Posted April 7, 2018 Author Posted April 7, 2018 7 minutes ago, DNL291 said: Use: onClientMinimize getRealTime can you build a code for me please?
myonlake Posted April 7, 2018 Posted April 7, 2018 This is not a request forum. Do something for once yourself, please. If I helped you, please click the like button on the right Thanks!
sagi100 Posted April 7, 2018 Author Posted April 7, 2018 10 minutes ago, myonlake said: This is not a request forum. Do something for once yourself, please. but i dont know , that why i ask , just give me something i will try to handle with it
WorthlessCynomys Posted April 8, 2018 Posted April 8, 2018 13 hours ago, sagi100 said: but i dont know , that why i ask , just give me something i will try to handle with it addEventHandler() onClientMinimize event getRealTime() outputChatBox() Read the wiki's of these things and try to build it yourself. With this amount of information, you should be able to. If not, you either don't know Lua basics or programming is not for you.
Moderators IIYAMA Posted April 8, 2018 Moderators Posted April 8, 2018 99% of people who request this do not learn anything about it, since the do not know lua. They do not even realize that learning it that way doesn't work at all. The only thing they do learn about it, is that it is really easy to let other people doing their work for free. So, what makes you that 1%? That precious 1%, which I think they deserve that kind of attention. The situation: To receive finished code without knowing lua. 2 Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Moderators Patrick Posted April 8, 2018 Moderators Posted April 8, 2018 https://community.multitheftauto.com/index.php?p=resources&s=list&name=afk&descr=&category= community profile | map converters | map images | pDownloader | pAttach | model encrypter
sagi100 Posted April 8, 2018 Author Posted April 8, 2018 4 hours ago, WorthlessCynomys said: addEventHandler() onClientMinimize event getRealTime() outputChatBox() Read the wiki's of these things and try to build it yourself. With this amount of information, you should be able to. If not, you either don't know Lua basics or programming is not for you. function handleMinimize2(thePlayer) if getElementData(thePlayer,"state") == "alive" then outputChatBox ( getPlayerName(thePlayer):gsub("#%x%x%x%x%x%x","").." #ffffffMinimized" ,getRootElement(), 255, 255, 255, true) end end addEvent( "gowno", true ) addEventHandler( "gowno", root, handleMinimize2 ) addEventHandler(handleMinimize2(thePlayer) onClientMinimize event function showtime () local time = getRealTime() local hours = time.hour local minutes = time.minute outputChatBox ( "Local Time: "..hours..":"..minutes ) end outputChatBox() is that good?
WorthlessCynomys Posted April 8, 2018 Posted April 8, 2018 4 hours ago, sagi100 said: function handleMinimize2(thePlayer) if getElementData(thePlayer,"state") == "alive" then outputChatBox ( getPlayerName(thePlayer):gsub("#%x%x%x%x%x%x","").." #ffffffMinimized" ,getRootElement(), 255, 255, 255, true) end end addEvent( "gowno", true ) addEventHandler( "gowno", root, handleMinimize2 ) addEventHandler(handleMinimize2(thePlayer) onClientMinimize event function showtime () local time = getRealTime() local hours = time.hour local minutes = time.minute outputChatBox ( "Local Time: "..hours..":"..minutes ) end outputChatBox() is that good? No. Next time use the <> sign.
koragg Posted April 9, 2018 Posted April 9, 2018 Here's a script I made long ago: https://community.multitheftauto.com/index.php?p=resources&s=details&id=13712 Use its code for the minimize thing and getRealTime() and its functions to show the time and everything via outputChatBox. I love rock/metal/pop but don't mind any other music genre except чалга...that thing sux I also love cars PS I'm friendly
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