-
Posts
1,312 -
Joined
-
Last visited
Everything posted by KariiiM
-
It's up to you now, meet the scripter who scripted this gamemode for you to deal with it.
-
You're welcome
-
There's onClientPickupLeave --Client sided You can make a trigger to do that
-
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
-
I prefer the second part
-
I told that to him multiple of time I hope he can understand that.
-
You are welcome Stefan
-
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)
-
Post what you have tried, btw why are you attaching source to the event handler? it must be root or guiRoot
-
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
-
yeah try removeEventHandler
-
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)
-
I already told you vehicle is not defined
-
If you mean, converting the first character to Capital then you have to use string.upper
-
Hello Mitnick, Do you mean, if someone wrote something in the main chat like "troll" it could output in somewhere? or what
-
Why don't you just use onClientPlayerWasted and do removeEventHandler
-
Can I just know from where you got this "theVehicle" ?
-
vehicle still not defined in your code, did you create a vehicle or you just using this parameter for no reason?
-
Because "vehicle" is not defined.
-
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
-
Can't you try it alone and post what you have tried?
-
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?