-
Posts
1,312 -
Joined
-
Last visited
Everything posted by KariiiM
-
Explain what do you want from this object to do exactly
-
Try to check if the selected is returns true, by outputing it in somewhere
-
Hello Haraba, Basically it should be like that: --Server side addCommandHandler("tele", function(thePlayer,cmd) --[[Your code]] end) bindKey("F2", "down", "tele")
-
I think that's possible
-
function destroyvehicles(player, selected) if selected and isElement(selected) then destroyElement(selected) outputChatBox("You Destroyed This Vehicle Vehicle", player, 0, 250, 0). end end addEvent("CSTdestroy.destroyvehicle", true) addEventHandler("CSTdestroy.destroyvehicle", root, destroyvehicles)
-
I found your problem where it exists https://forum.multitheftauto.com/viewtopic.php?f ... nt#p604366
-
So in this case would be hard to detect the error, you have one way to try to find where this error does appear by yourself. Ah, there is another way, as far as you named your event "requestLODsClient", try to remember in which resource you used this event name then check it, it might be client sided and the problem exist in server side I hope you get it
-
On which action that you do to let this error appears? but normally it should tell you the line and the file
-
So use MySQL or SQLite then, use dbFunctions
-
What do you mean, you want to avoid using those types?
-
You're welcome
-
--Client side: function createTaxiWindow() local x = 0.375 local y = 0.375 local w = 0.25 local h = 0.25 gJW = guiCreateWindow(x, y, w, h, "Job", true) guiWindowSetSizable(gJW, false) x = 0.35 y = 0.5 w = 0.35 h = 0.35 gJB = guiCreateButton(x, y, w, h, "Join", true, gJW) addEventHandler("onClientGUIClick", gJB, getTheJob, false) x = 0.92 y = 0.15 w = 0.045 h = 0.075 gJBE = guiCreateButton(x, y, w, h, "x", true, gJW) addEventHandler("onClientGUIClick", gJBE, setUnVisTaxi, false) end function setVisTaxi() createTaxiWindow() if (gJW ~= nil) then guiSetVisible(gJW, true) else return end showCursor(true) end addCommandHandler("gtj", setVisTaxi) function setUnVisTaxi(button, state) if button == "left" and state == "up" then guiSetVisible(gJW, false) showCursor(false) end end function getTheJob() triggerServerEvent("gTJ", localPlayer) end --Server side: function CreateTeam() local tt = createTeam ("Taxi", 255, 255, 255) end addEventHandler("onResourceStart", getRootElement(), CreateTeam) function getTaxiJob() setPlayerTeam(source, getTeamFromName("Taxi")) end addEvent("gTJ", true) addEventHandler("gTJ", root, getTaxiJob)
-
Try that server side: local tt = createTeam ("Taxi", 255, 255, 255) function getTaxiJob() if tt then setPlayerTeam(source, tt) end end addEvent("gTJ", true) addEventHandler("gTJ", root, getTaxiJob)
-
Here you go: Follow what I am gonna say, First, you've to be sure your topbarchat script is running. Second thing, is go to line "7" ,and change resourcename to the topbarchat folder name. It should work if you had followed those steps correctly. addCommandHandler("ann", function(player, cmd, ...) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "LWS" )) then local message = table.concat({...}, " ") if #message > 0 then exports.resourcename:sendClientMessage(message, getRootElement(), 0, 255, 0, false) end end end)
-
Post the meta of this topbarchat
-
So you have to make an exports for your topbarchat script. Try this, it will out put on CHATBOX main chat. addCommandHandler("ann", function(player, cmd, ...) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "LWS" )) then local message = table.concat({...}, " ") if #message > 0 then outputChatBox(message, getRootElement(), 255,0,0) end end end)
-
Can you put the top bar chat function sendClientMessage here?
-
Try that addCommandHandler("ann", function(player, cmd, ...) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "LWS" )) then local message = table.concat({...}, " ") if #message > 0 then sendClientMessage (message, getRootElement(), 255,0,0) end end end)
-
function searchMission() local text = guiGetText(SearchEdit) local sItems = { } for i, v in pairs(Mission) do if not (text == "" ) then if (string.find(string.upper(v[1]), string.upper(text), 1, true)) then table.insert(sItems, v[1]) end else table.insert(sItems, v[1]) end end guiGridListClear(ChooseEvent) for i, v in pairs(sItems) do local row, col = guiGridListAddRow(ChooseEvent) guiGridListSetItemText(ChooseEvent, row, 1, v[1], false, false) guiGridListSetItemText(ChooseEvent, row, 2, v[2], false, false) end end
-
How to create a database in a proper computer?
KariiiM replied to OnlineCheater's topic in Scripting
And make sure Skype is not running. -
Why you looping and you have only one value on table.
-
Use this function: playSound
-
I have edited your code abit, try that now function levelup ( ) local expLabel = guiCreateLabel ( 0.777, 0.22, 0.1708, 0.0963, "\nToplam Exp: ".. tostring ( Exp ) .."\nLevel: ".. tostring ( Level ), true ) if isElement ( expLabel ) then destroyElement ( expLabel ) end local Exp = getElementData ( localPlayer, "ExP" ) or 0 local Level = getElementData ( localPlayer, "Level" ) or 0 guiLabelSetColor ( expLabel, 0, 255, 0 ) guiLabelSetVerticalAlign ( expLabel, "top" ) guiLabelSetHorizontalAlign ( expLabel, "left", false ) guiSetFont ( expLabel, "clear-normal" ) end setTimer ( levelup, 2000, 1 ) function onlabelCreate () local ups= guiCreateLabel ( 0.45, 0.48, 0.10, 0.04, true ) if not guiGetVisible(ups) then guiSetVisible(ups, true) setTimer(guiSetVisible, 5000, 1, ups, false) guiSetText(ups, "LEVEL ATLADIN ! "..getElementData(localPlayer, "Level")) end end onlabelCreate ()