are you sure you was scripting for 3 years or it was just a dream? after coding in ANY language you shouldn't ask so weird, uncomplete questions
- create a gui with some confirm button/whatever and hide it / GUI functions
- create a marker / createMarker
- attach an onMarkerHit event to it / addEventHandler
- on handler function show you gui / guiSetVisible but you will need showCursor too
- attach an onClientGUIClick to some confirm button / addEventHandler
- create custom event on serverside / addEvent and addEventHandler
- trigger server event with your car as argument / triggerServerEvent
- hide gui / guiSetVisible but you will need showCursor too
- remove car and give player money on serverside / destroyElement and givePlayerMoney
this is a request right?
if not - what is it if you only said what you want and dont have any code?
i dont even fully understand what this script should do - sell car - you mean car shop, or "sell" car you drive in car shop, or..
Shortened: I'm scripting for 3 years, now script something for me..
Solid gave you the good link. Also check wiki main page - there is Scripting box containing all you need.
If you need to know something about general lua language:
http://www.lua.org/manual/5.0/
Moving to Scripting section.
Uhm, just a simple poll.
Need it to create better GUI for my new gamemode (WIP).
I know not all resoultions are listed, but i just need HEIGHT.. If you having different width but same height - check that option.
I gave you working and tested script 7 posts ago!
Just copy and paste it!
CLICK
And guys, don't try to to help if you don't know what are you doing. Random not working solutions will just confuse topic creator more, but won't help..
read manual.
https://wiki.multitheftauto.com/wiki/ACL
https://wiki.multitheftauto.com/wiki/Server_Manual
https://wiki.multitheftauto.com/wiki/Admin
Just add "resource.login_register" in Admin group.
Notice this question was asked dozens of times and I'm sure there was instructions how to use this resource just above DOWNLOAD button.
For basemode go to:
viewtopic.php?f=108&t=26311&start=0
For server manual go to:
https://wiki.multitheftauto.com/wiki/Server_Manual
For serverffs forums, related to MTA go to:
http://forum.serverffs.com/viewforum.php?f=14
For live support of serverffs (they're gonna hate you if you will keep acting like that):
https://www.serverffs.com/livesupport/
Make this topic less ridiculous or it will be locked.
1. yes
2. because you didnt read that damn link
function setColors()
outputChatBox("whatever")
end
addEvent("onClientMapStarting")
addEventHandler("onClientMapStarting", getRootElement(), setColors)
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), setColors)
........................
you are on my personel blacklist to, because you are much too lazy to call yourself a scripter
https://wiki.multitheftauto.com/wiki/Resource:Race
it's onClientMapStarting
Check Wiki, search for race resource events, there was something like onClientRaceStart or something similar. Add a handler to this event that sets sky gradient and water colour. and start your resource
Solid - i won't, this is just notice, because i dont like the look of first capital in this word.
Topic locked, because topic author created new one:
viewtopic.php?f=91&t=29273