-
Posts
216 -
Joined
-
Last visited
Everything posted by Mega9
-
object = createObject (980, 2813.330078125, -1468.1806640625, 16.254442214966) marker = createMarker(2813.330078125, -1468.1806640625, 16.254442214966, "cylinder", 2, 100, 0, 0, 100) function gate(player) local data = getElementData(player,"job") if (data=="hex") then moveObject(object, 500, 2813.330078125, -1468.1806640625, 16.254442214966) else outputChatBox("Sorry, you can't enter the impound.",player,255,0,0) -- used both ' and " which broke the function end end addEventHandler("onMarkerHit", marker, gate) -- Case sensitive! function gatec(player) moveObject(object,2813.330078125, -1468.1806640625, 16.254442214966) end addEventHandler("onMarkerLeave", marker, gatec) -- case sensitive as well
-
Make sure to type "refresh" in console after putting resources while the server is turned on.
-
Oh am I freaking blind, I've seen only the first page of this topic. ROFL Nvm then, sorry for interrupting.
-
function setAdminSkin() if hasObjectPermissionTo(thePlayer, "command.ban", true) then setPlayerSkin(thePlayer, 286) outputChatBox("Welcome admin, your skin has been set to: Admin server skin.",thePlayer) end end When do you trigger this function?
-
Ajde da ne idemo u off odgovorim ti u PP.
-
Razvijao sam neki RPG gamemode, ali pošto više nemam vremena za nastavit, rasprodajem ono što je napravljeno. Inače neke poslove koji još nisu dovršeni, tako da mogu biti lako prilagođeni kupcu. Samo lova, nema zamjene - uplata na bankovni račun, svašta se da riješit ako hoćeš
-
Inače naši internet provideri veliku količinu novca traže za static IP adrese. Dakako ima način putem ovoga software-a: http://www.noip.com/ Kada ga instaliraš on se sam prilagođava tvojoj IP adresi i ti biraš svoju unikatnu "adresu" npr. mojserver.no-ip.com i putem toga se svi tvoji igrači mogu spojiti na server.
-
I got some if anyone's interested. Cheap, made from scratch by me - mostly jobs. More info through PM.
-
Lack or no desc at all: https://community.multitheftauto.com/index.php?p= ... ls&id=6165 https://community.multitheftauto.com/index.php?p= ... ls&id=6172 https://community.multitheftauto.com/index.php?p= ... ls&id=6174 DONE
-
Uhm well, I'll take that as a compliment. No problem. EDIT: Also I didn't say it's bugless, but it works and with a little of scripting hand you could solve those little issues.
-
closebutton = guiCreateButton( 0.48, 0.96, 0.035, 0.035, "X", true, image ) function close() guiSetVisible (image, false) showCursor (false) end addEventHandler("onClientGUIClick", closebutton, close) This should work, if it doesn't I apologize I haven't slept well.
-
Download this resource instead: https://community.multitheftauto.com/index.php?p= ... ls&id=3287 It's the original one and it has been updated recently.
-
elseif (source == closebutton) then guiSetVisible (tab1, false) showCursor (false) end merge this with event "onClientGUIClick" ofc make a button first another way is to make a command but I guess that's not what you want
-
Are you sure these buttons are created in "tab1"?
-
What does it says exactly in debug console?
-
Meh... instead of adding event handlers for each button do this addEventHandler ("onClientGUIClick", root, function () if source == button1 then -- bla bla elseif source == button2 then -- bla bla! end end ) I think you get the point...
-
Have you tried using a timer? Or maybe your save system gives weapons back onPlayerSpawn, in that case you should use that handler to remove weapons.
-
Wiki is your best friend, when I'm sad or lonely, I just visit https://wiki.multitheftauto.com/wiki/Main_Page To start learning about Lua click this link -> https://wiki.multitheftauto.com/wiki/Scr ... troduction Also this could be useful for you -> https://community.multitheftauto.com/ind ... ils&id=811 Castillo's race userpanel as you obviously want that script for race gamemode, right?
-
if guiGetVisible (yourgui, true) then
-
I can't seem to understand your problem. Did you try to delete it while the server was off?
-
I would appreciate if you delete following resources: https://community.multitheftauto.com/index.php?p= ... ls&id=3075 https://community.multitheftauto.com/index.php?p= ... ls&id=3074 As they are poorly made, buggy and some even don't make sense. Thanks.
-
Afaik original is called 'killmessages', delete that resource.