
qaisjp
Retired Staff-
Posts
2,344 -
Joined
-
Days Won
10
Everything posted by qaisjp
-
Instead, go to admin panel > double click resource > settings (delay == 70000)
-
Yes, I suppose this would be nice, but really, the other things are more important.
-
/me like's eAi's post.
-
What type of scripting help? Roleplay...freeroam etc...
-
I usually store the coordinates as strings and use for i,v in pairs(hospitalsTable) do x = gettok(v, 1, string.byte(",") y = gettok(v, 2, string.byte(",") z = gettok(v, 3, string.byte(",") outputChatBox(x..", "..y..", "..z) end but the code solidsnake provided is better.
-
When I am talking about only the infernus, I have 50 other dff/col/txd. So I won't be reuploading 'em all. I don't care about the player warping out when replacing txd/dff/col but the problem is when I use destroyElement on the TXD element it returns false for some reason, I know the element exists 'cos getElementType(txdElement) == "txd"
-
I just tested it now, and it turns out it when i do destroyElement on the txd/dff/col element it always returns false/nil. anyhelp?
-
Add this after creating the window: guiSetVisible(GUIEditor_Window[1], false) Now add this: local misc = guiGetVisible(GUIEditor_Window[1]) guiShowCursor(not misc) guiSetVisible(GUIEditor_Window[1], not misc) to a command handler
-
Maybe when you have kept it zipped it would show an error saying it needs to be unzipped. Probably create a dummy xml file and if it isn't created show the error :£
-
Maybe first start GG then start gg-smallville
-
Wojak, then how is it called getElementsWithinColShape when it doesn't support anything except peds/vehs. Then it should be called getPedsOrVehsWithinColShape or something like that. It should detect all types of elements.
-
Use the resource autoteams > www.community.multitheftauto.com
-
I don't only need it for handling. I need it for something else too. (The downhill thing)
-
I have made a resource with a friend that detects and warns the player that he has handling modifications. I have a clean handling and I recently became aware that it also detects when going downhill. I need a bit of help in this, cos when people set their position to something high and go dropping down in a car this sometimes goes to 500kmph (Especially when I created a tram and warped my ped into it) Code: local playerVehicleTimer = { } local playerCaught = { } local maxSpeedList = { 160, -- Landstalker (and so on and on and on in a proper order) } function detectSpeedMod(thePlayer) if isElement(thePlayer) then if (playerCaught[thePlayer] == false) then local theVehicle = getPedOccupiedVehicle(thePlayer) if (theVehicle == false) then playerCaught[thePlayer] = false if (playerVehicleTimer[source] ~= false and playerVehicleTimer[source] ~= nil) then killTimer(playerVehicleTimer[thePlayer]) end playerVehicleTimer[thePlayer] = nil return end local id = getElementModel(theVehicle) local speedX, speedY, speedZ = getElementVelocity(theVehicle) local actualSpeed = math.floor(((speedX ^ 2 + speedY ^ 2 + speedZ ^ 2) ^ (0.5)) * 100 * 1.61) local i = (id - 399) local percentage = math.floor(((actualSpeed * 100) / maxSpeedList[i]) - 100) if (percentage >= 21) then -- The player is using speedmod or has a modified handling.cfg. -- We report it. triggerEvent("reportToStaffLog", getRootElement(), thePlayer, "Speedmod / Modified handling", getVehicleName(theVehicle) .. " (+" .. tostring(percentage) .. "%)") playerCaught[thePlayer] = true return end playerVehicleTimer[thePlayer] = setTimer(detectSpeedMod, 5000, 1, thePlayer) end end end Don't worry about the calling of the function. So how to make it detect if the player is going downhill. Could you provide me a function like isPlayerVehicleGoingDownwards()
-
pwnage - However the best login panel I have come across is the login panel made by NeXtreme.
-
It's not exactly stealing unless you compile+license it.
-
Here is what you need to do: Realise we are not here to help you steal
-
Aha, so is this also why I see local function jaja() end sometimes? So this function is only accessible and visible to the file ? So I can keep one function called changeText in multiple files (different) and they will only run the one in the file ? THANKS
-
The Multi Theft Auto Community - Home of redistributable resources, get em' here, basic or not.
-
I think it is possible, but you would have to make it detect where to find it. Anythingis possible in lua
-
You mean: /close /close /close /close i resolved it but thanks for the help solidsnake14