-
Posts
1,312 -
Joined
-
Last visited
Everything posted by KariiiM
-
The part that you tried to use timer on it
-
Ah , you want show your data to the scoreboard?
-
Look nice,but does this will not make your server with FPS drop?
-
Post the wanted system script of this gamemode
-
Yes now fine i got it, working on it when i finish i'll send the results
-
1075 lines oks, what did you changed on this code?
-
I'm going to sleep i'll try that by myself tomorrow if i have time and tell you the results , send me the full code via pm
-
Try that, addEventHandler ("onClientGUIClick", root, function () if (source == cancel) then if guiGetVisible(window) ~= nil then guiSetVisible (window, false) showCursor(false) end elseif (source == transport) then local row = guiGridListGetSelectedItem(grid) if row and row == -1 then outputChatBox ("You must selecte the destination",getLocalPlayer(),255,0,0) return false end guiSetVisible(window,false) showCursor(false) triggerServerEvent("warp",getLocalPlayer(),guiGridListGetSelectedItem(grid)+1) elseif (source == create) then if guiGetVisible(window) ~= nil then guiSetVisible (window, false) showCursor(false) guiSetVisible (newLocation, true) showCursor (true) end elseif (source == newLocationCancel) then if guiGetVisible(newLocation) ~= nil then guiSetVisible (newLocation, false) guiSetVisible (window, true) end elseif (source == newLocationCreate) then local name = guiGetText(nameInput) local desc = guiGetText(descInput) if (name == "") then guiSetText (errorMessage, "You have not entered a name for the teleport.") return end if (desc == "") then guiSetText (errorMessage, "You have not entered a description for the teleport.") return end -- ill continue this after end end)
-
nameInput and descInput are Edit boxs?
-
Try this and tell me the result addEventHandler ("onClientGUIClick", root, function () if (source == cancel) then if guiGetVisible(window) ~= nil then guiSetVisible (window, false) showCursor(false) end elseif (source == transport) then local row = guiGridListGetSelectedItem(grid) if row and row == -1 then outputChatBox ("You must selecte the destination",getLocalPlayer(),255,0,0) return false end guiSetVisible(window,false) showCursor(false) triggerServerEvent("warp",getLocalPlayer(),guiGridListGetSelectedItem(grid)+1) elseif (source == create) then if guiGetVisible(window) ~= nil then guiSetVisible (window, false) showCursor(false) guiSetVisible (newLocation, true) showCursor (true) end elseif (source == newLocationCancel) then if guiGetVisible(newLocation) ~= nil then guiSetVisible (newLocation, false) guiSetVisible (window, true) end elseif (source == newLocationCreate) then if (nameInput == "") then guiSetText (errorMessage, "You have not entered a name for the teleport.") return end if (descInput == "") then guiSetText (errorMessage, "You have not entered a description for the teleport.") return end -- ill continue this after end end)
-
You're using elseif without adding then so it will return false with ERRORs elseif (source == newLocationCreate) Must be like that elseif (source == newLocationCreate) then Full code addEventHandler ("onClientGUIClick", root, function () if (source == cancel) then if guiGetVisible(window) ~= nil then guiSetVisible (window, false) showCursor(false) end elseif (source == transport) then local row = guiGridListGetSelectedItem(grid) if row and row == -1 then outputChatBox ("You must selecte the destination",getLocalPlayer(),255,0,0) return false end guiSetVisible(window,false) showCursor(false) triggerServerEvent("warp",getLocalPlayer(),guiGridListGetSelectedItem(grid)+1) elseif (source == create) then if guiGetVisible(window) ~= nil then guiSetVisible (window, false) showCursor(false) guiSetVisible (newLocation, true) showCursor (true) end elseif (source == newLocationCancel) then if guiGetVisible(newLocation) ~= nil then guiSetVisible (newLocation, false) guiSetVisible (window, true) end elseif (source == newLocationCreate) then if guiGetVisible(newLocation) ~= nil then guiSetVisible (newLocation, false) showCursor (false) end end end)
-
What he said is looking impossible , he need a .lua file with declaring it to a meta.xml
-
addEventHandler ("onClientGUIClick", root, function () if (source == cancel) then if guiGetVisible(window) ~= nil then guiSetVisible (window, false) showCursor(false) end elseif (source == transport) then local row = guiGridListGetSelectedItem(grid) if row and row == -1 then outputChatBox ("You must selecte the destination",getLocalPlayer(),255,0,0) return false end guiSetVisible(window,false) showCursor(false) triggerServerEvent("warp",getLocalPlayer(),guiGridListGetSelectedItem(grid)+1) elseif (source == create) then if guiGetVisible(window) ~= nil then guiSetVisible (window, false) showCursor(false) end end end)
-
The meaning of it, is as you know when you open your GTA SA game , you'll play alone with some peds are programmed except of MTA, It has a great advantages for example you can play with real players or you can make some friends from it ,maybe you can meet them in real life, personally it happened to me.
-
Name is able to be changed but serial no so simply get the player serial and check it ,if it equal to the serial ID that you got
-
Great video like always, keep the good job
-
oh, that. I already did it, cause it gave me warnings. But still nothing. Maybe there's something wrong with this function , im about to report it
-
Also, use /debugscript 3 to check if there's any error
