Jump to content

KariiiM

Members
  • Posts

    1,312
  • Joined

  • Last visited

Everything posted by KariiiM

  1. It's up to you now, meet the scripter who scripted this gamemode for you to deal with it.
  2. KariiiM

    Top bar chat

    Post the code here
  3. There's onClientPickupLeave --Client sided You can make a trigger to do that
  4. Hello dear supernova, First off, there's a resource called "mysql" not running, that's means it's off not working at all, try to start this resource, and if this resource contains database informations so in this case all db functions who are exist in your script would return false with warning / errors. Good luck, Regards, KariM
  5. I told that to him multiple of time I hope he can understand that.
  6. removeEventHandler("onClientGUIClick", guiRoot, onClickButton) EDIT: I just saw your main code wasn't fine, copy it function onClickButton() local statement = nil if source == cpCopyAccount then statement = guiGetText(cpInfoAccount2) setClipboard(statement) outputChatBox("Copied: " .. statement) elseif source == cpCopySerial then statement = guiGetText(cpInfoSerial2) setClipboard(statement) outputChatBox("Copied: " .. statement) elseif source == cpCopyIP then statement = guiGetText(cpInfoIP2) setClipboard(statement) outputChatBox("Copied: " .. statement) elseif source == cpBanReason then guiSetText(cpBanReason, "") elseif source == cpBanTime then guiSetText(cpBanTime, "") elseif source == cpJailReason then guiSetText(cpJailReason, "") elseif source == cpJailTime then guiSetText(cpJailTime, "") elseif source == cpWarnReason then guiSetText(cpWarnReason, "") end end addEventHandler("onClientGUIClick", guiRoot, onClickButton)
  7. Post what you have tried, btw why are you attaching source to the event handler? it must be root or guiRoot
  8. The function must be defined to remove the event handler, like that you're just trying to remove an unknown event, which make no sense
  9. Well, If I understood you well, this might work for you addEventHandler("onClientGUIClick", source, function() local statement = nil if source == cpCopyAccount then statement = guiGetText(cpInfoAccount2) local clip1 = setClipboard(statement) if clip1 then outputChatBox("Copied: " .. statement) end elseif source == cpCopySerial then statement = guiGetText(cpInfoSerial2) local clip2 = setClipboard(statement) if clip2 then outputChatBox("Copied: " .. statement) end elseif source == cpCopyIP then statement = guiGetText(cpInfoIP2) local clip3 = setClipboard(statement) if clip3 then outputChatBox("Copied: " .. statement) end elseif source == cpBanReason then guiSetText(cpBanReason, "") elseif source == cpBanTime then guiSetText(cpBanTime, "") elseif source == cpJailReason then guiSetText(cpJailReason, "") elseif source == cpJailTime then guiSetText(cpJailTime, "") elseif source == cpWarnReason then guiSetText(cpWarnReason, "") end end)
  10. I already told you vehicle is not defined
  11. If you mean, converting the first character to Capital then you have to use string.upper
  12. Hello Mitnick, Do you mean, if someone wrote something in the main chat like "troll" it could output in somewhere? or what
  13. Why don't you just use onClientPlayerWasted and do removeEventHandler
  14. Can I just know from where you got this "theVehicle" ?
  15. vehicle still not defined in your code, did you create a vehicle or you just using this parameter for no reason?
  16. Because "vehicle" is not defined.
  17. function buttonPick(vehicle) if not vehicle then return end local x, y, z = getElementPosition(vehicle) local vehicleZoneName = getZoneName(x, y, z) guiSetText(zonexad, "Veh Zone: "..tostring(vehicleZoneName)) end
  18. Can't you try it alone and post what you have tried?
  19. I've spawned a car, and tried /hide It's didn't work, I mean, In outputChatBox there's message for me ("No vehicle is spawned") So, it's another problem, isn't /hide worked?
×
×
  • Create New...