-
Posts
171 -
Joined
-
Last visited
Everything posted by glowdemon1
-
Hi, I haven't noticed a command that allows you to pause your script for a second, I'm basicly creating a vehicle, but then I NEED to implement something that it waits 1 second after that, after that one second it does setElementFrozen. function bikeShop() lowriderBike = createVehicle(509, 698.6, -521.20, 16,0,0,90) os.sleep(1) -- ??? setElementFrozen(lowriderBike, true) end
-
viewtopic.php?f=115&t=54447
-
Thanks for teh fast response, works like a charm.
-
Hi, is it possible to add collums to your existing tables ? If so, how ?
-
Let me know what the results are because I'm planning on doing some home hosting and switching to Raspberries/Beagleboard, heard beagleboard is better but also twice as expensive as a raspberry.
-
I have to agree with solstice, RP servers have gone apeshit after valhalla transformed into rootgaming, RP servers started popping up from the ground like mushrooms, however it wasn't considered a plague back then as they HQ roleplayers stayed on rootgaming and those who got banned because they were noobs or something went to those other servers. But after the downfall of root the community just got spread everywhere, most went to unitedgaming. But unfortunately due to the unexpected downfall of unitedgaming (root's downfall was expected), there weren't any servers from ex-ug members. Most got spread to aceMTA, few went to immersiongaming. Now lets change the topic real quick, there's too many roleplay servers, most of those owners are money hungry and just starting up a server in hopes that they get money without having to do a shit, but they're completely wrong. And lets change the topic again... Most GOOD roleplay servers go down rather quick due to the shitty competition, EVERY server gets atleast ddosed once a month, what do I say ? Once a week. This is getting out of hand, its sad that this has to end many RP servers this way. So please, if you're into this, stop it before I find you and rip your guts out. I hope you'll suffer in hell and may your family die early because of your acts. However it would be nice to see RP servers working together in the future instead of ddosing the shit out of it, keyboard warriors. This post hopefuly doesn't apply to anyone above me. Just wanted to put it in here in hopes that this gets seen and changes others mind.
-
I'm excited, seeing as it's only a half a month left, I wanted to pre-order the special edition but unfortunately they were already sold out, if you didn't pre-order it yet, do it now or you might have to wait another month.
-
Updated computers can't be compared to those from six months ago. Technology is changing so fast, before you know we're able to run servers on computers the size of your ID. I'm not trying to be butthurt but wont this affect your internet aswel ?
-
It would be easier to make yourself invurnible with onPlayerDamage and cancelEvent - However a script that was said above me could be more handy sometimes. --
-
Thanks manve1. And I'm still learning Prestege.
-
Hi, I'm trying to make it so when I join the server and I have no team, it automatically puts me into the "Unemployed" team, however this does not work, here's my code. addEventHandler("onPlayerJoin", getRootElement(), function(thePlayer) if getPlayerTeam == false and getPlayerTeam ~= "pizzaBoy" --pizzaBoy is used to detect wether he has a job or not (there's only 1 job yet) then setPlayerTeam(thePlayer, "Unemployed") end end)
-
function onMachineClick(button, state, absoluteX, absoluteY, worldX, worldY, worldZ, element) if element and getElementType( element ) == "object" and button == "right" and state == "down" and getElementModel(element) == 955 then vendingWindow = guiCreateWindow(0.375,0.375,0.25,0.25,"Vending machine by freshhh", true) cancelButton = guiCreateButton(0.7,0.1,0.2,0.1,"Cancel", true) buyButton = guiCreateButton(0.9,0.1,0.2,0.1,"Purchase", true) end end function shutDownGUI(button, state) if button == "left" and state == "up" then guiSetVisible (vendingWindow, not guiGetVisible ( vendingWindow ) ) showCursor(false) end end addEventHandler("onClientClick", getRootElement(), onMachineClick) addEventHandler("onClientGUIClick", cancelButton, shutDownGUI, false) Whenever I click the cancel button, the GUI doesn't go away. I'm new to GUI's, so any help ?
-
[Outdated] Unofficial MTA Script Editor 0.3 (4851) RELEASED!
glowdemon1 replied to 50p's topic in Scripting
Installing, lets see what this will be like EDIT : Would be nice to have whenever you write down functions that the needed arguments show up like they sometimes do in Eclipse IDE. -
Aaand here we are : http://pastebin.mtasa.com/967520183 EDIT : After being on the IRC for a few mins a lovely man called ccw told me to check in C:\Users\\AppData\Local\VirtualStore\Program Files (x86) for any rockstar directories, after deleting that one my game worked like a charm, thanks ccw !
-
Thanks for the fast reply. I'll try it and post the results in a few.
-
Hi, now I'm not sure if this is the right place to post, but my MTA crashes whenever I start it up, it goes to the menu, then after one second it freezes and crashes. I have already re-installed MTA and SA, but nothing. I have also done a clean GTA SA install. This happened when I tried to install a soundmod. EDIT : I'd like to add that singleplayer itself doesnt work either so I doubt its MTA-side. Version = 1.3.3-release-5647.0.000 Time = Wed Aug 21 00:21:18 2013 Module = C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gta_sa.exe Code = 0xC0000005 Offset = 0x000DFE92 EAX=FF1BF780 EBX=049269DE ECX=3FC6FDE0 EDX=156B25F0 ESI=0000004B EDI=159878E0 EBP=04926940 ESP=0028FD4C EIP=004DFE92 FLG=00010202 CS=0023 DS=002B SS=002B ES=002B FS=0053 GS=002B
-
Thanks mate, works like a charm ! What exactly did I do wrong ? I'm new to coding and I'm willing to learn alot.
-
Alrighty, I did this but now it's not working, I've tried to put this both client and serverside, here's my codes : META: <meta> <info author="/" name="/" description="/" /> <script src="main.lua" type="client" /> <script src="s_main.lua" type="server" /> </meta> main.lua: function onMachineClick(button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedElement) if element and getElementType( element ) == "object" and button == "right" and state == "down" and getElementModel(element) == 955 then outputChatBox( "WORKS" ) end end addEventHandler("onClientClick", getRootElement(), onMachineClick)
-
Hi, I've noticed that whenever I start my server I have to start up all resources (those who I've made myself) manualy. Is there some kind of thing I can do so that ALL my resources start when I start up my server ? And also, is it possible to stop/start/restart my resources by doing an IG command ? THat would make everything easier for me, thanks in advance.
-
Hi, I'm currently making a slot machine with a GUI, so I'm stuck at one certain point and I'm fairly new to scripting. I have a working cursor script and now I just need to find if there's something pre-definded like onObjectClick. (Whenever I click the slot machine object/model it does a certain action like show a GUI).