-
Posts
6,097 -
Joined
-
Last visited
-
Days Won
218
Everything posted by IIYAMA
-
If you are not are not (going to be) a programmer, then this is not the right section to post this. I will move your topic to resources, where you can request what you need. See also this section: https://forum.multitheftauto.com/forum/149-looking-for-staff/ Please read the guidelines of the scripting section:
-
Did you add the download able assets(+ html) in to the meta.xml? (And check if those files are actually downloaded in the client folder) https://wiki.multitheftauto.com/wiki/CEF_Tutorial That is afaik serving files from serverside.
-
Serverside is not complete at the very detail level of code instructions. Another script alone can't fill those unfinished parts.
-
The resource/script is unfinished. You should ask the creator to finish it, finish it yourself or download a resource that is finished.
-
function repair(_,state) if state == "down" then if isCursorOnElement(screenW * 0.5490, screenH * 0.4648, screenW * 0.6808, screenH * 0.5169) then if Kit_Reparo >= 1 then triggerEvent("startRepair", root) removeEventHandler("onClientRender", root, painelR) painel = false showCursor(false) else exports._infobox:addNotification("Você não possui kit de reparo!", "error") end end end end addEventHandler("onClientClick", root, repair) This addEventHandler is always attached and there is no validation that checks if the panel is open/button is visible.
-
In the browser yes.
-
This rectangle exist out of 7 parts. - 4 corners - 1 big rectangle, the middle, from left to right - 2 small rectangles, top and bottom You can animate the big rectangle it's width and height. (+ Position, if not animated from left-top) The 2 small rectangles, their width and position. And the corners, their position. But make sure to align the components perfectly with the pixels on the screen. Half pixels might cause artifacts.
-
How to disable vehicle impact with breakable objects?
IIYAMA replied to Behnam-Edit's topic in Scripting
Same here ? As far as I understand of the wiki. - You have group id's which are kind of slots you can use. I don't think you have to create them. Just use 1 for your first try. - Assign the object models you want to change to the group 1. - Then set the properties which you think you need to achieve your goal. -
@Sisqo0 Did you know that there are id functions available? Which are very similar to those that are used in html/css/js. https://wiki.multitheftauto.com/wiki/SetElementID https://wiki.multitheftauto.com/wiki/GetElementByID
-
How to disable vehicle impact with breakable objects?
IIYAMA replied to Behnam-Edit's topic in Scripting
https://wiki.multitheftauto.com/wiki/EngineSetObjectGroupPhysicalProperty https://wiki.multitheftauto.com/wiki/EngineSetModelPhysicalPropertiesGroup Some new functions you can try. -
I am not sure which version you are using. But the resource might be working fine for your server, if you do the following: Remove the following line from your meta.xml <min_mta_version server="???" client="???" /> But be aware that you might see some warnings, which are related to functions that are not available inside of your server (version). setPedsLODDistance = available ??? setVehiclesLODDistance = available ??? Updating your server, might be handy if you want to be able to use the resources that use the newest features.
- 27 replies
-
- 1
-
-
- repository
- draw
-
(and 8 more)
Tagged with:
-
The resource has been unpacked, which is already a change. (not required to unpack, except in special cases) The resource name has been changed, since it original is written lowercase. Which are not really changes that can cause big problems... but you definitely did make changes. What happens if you use the /refreshall command as administrator? Check the server window to see if there are any errors and if the resource is available.
- 27 replies
-
- repository
- draw
-
(and 8 more)
Tagged with:
-
Add the keyword: in for k,msg in ipairs (badwords) do Syntax: http://www.Lua.org/manual/5.1/manual.html#pdf-ipairs
-
What did you try? Because setPlayerHudComponentVisible works, unless another script overwrite it's state.
-
local position = "15,20,18" local x, y, z = unpack(split(position, ","))
-
function deluxe ( ) local player = client addEventHandler doesn't work the same as the addCommandHandler. Use the predefined variable `client`, to get the player that did activate the event.
- 2 replies
-
- 1
-
-
- triggerserverevent
- got
-
(and 1 more)
Tagged with:
-
That is not really an issue, since it doesn't freezes the code. The database will just queue the queries and not execute them in parallel. Creating tables is something you should do once, not every time you start your script. Or are you talking about saving player data when you stop the resource?
- 1 reply
-
- 1
-
-
if not p then return true -- there is no parent? end for i=1,5000 do local data = dgsElementData[p] if not data then error("Data mismatch... go spam thisdp", 2) end if not data.visible then return false end p = FatherTable[p] if not p then break end end hmmm maybe... ? can't test it
-
Probably because your url contains an invalid protocol notation. Make sure to use https:// or http://
-
The functions that @Tut provided are the way to go to achieve that. You can find here an example resource on how to use the second function:
-
Then you probably need to replace that with: local vehicle = getElementData(player, "repairingvehicle");
-
bindKey getPedOccupiedVehicle local timer = repairTimer[vehicle] isTimer killTimer repairTimer[vehicle] = nil
-
If the health loss isn't subtracted, you will be able to detect the issue with the pre-event: https://wiki.multitheftauto.com/wiki/OnClientPlayerWeaponFire Since the health didn't change. + getTickCount to check if the damage is done within the same frame. And maybe include the ped task as well for validation.
-
When that occurs, what was the loss value?
