Jump to content

Mr.Loki

Members
  • Posts

    667
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by Mr.Loki

  1. That train is NASTY! Why would anyone want to sit there... Just use attachElements and create a table with offsets for each seat then set the sitting animation on them
  2. Oh so how are you currently calculating the points?
  3. What do you mean by it's too slow in a render function? Is it the detection or getting the points?
  4. Is there a way to set the current weapon in-hand to invisible without messing with the model's TXD?
  5. Do you mean something like this? It's done with Matrices.
  6. if someone uses the watchpp command the "got" variable will beset to true then the code will no longer run. You should probably use SetAccountData and GetAccountData so the script checks the player's account to see if he used the command.
  7. Does anyone know how to offset the X and Y so its relative to the Z?
  8. In English please? Are you talking about replacing models?
  9. replace line 2 with what i have then add an extra "end" under return Edit: also https://wiki.multitheftauto.com/wiki/Scripting_Introduction
  10. This looks like dayz. You should make a check to see if getElementData(veh,"parent") is an element and if its "fuel" data is a number. local parent = getElementData(veh,"parent") if isElement(parent) and tonumber(getElementData(parent,"fuel"))then if getElementData(parent,"fuel") <= 0 then -- code
  11. How I'd do this is store the player's skins( skin ids ) in a database either XML or sqlite. Then create some functions to access those database and have the database cache to a table(client-sided) so the database isn't called every time the player opens his inventory but only when adding or removing a skin.
  12. Those XYZ values on the screen are the rotations that are being set. The problem was the z was using the y values so its fixed now. The main problem I'm getting now is I've set the z rotation to the camera so the player is always facing forward. When the Z rotation is 180 the X and Y rotations are ok but when the Z is 0 the rotations on X and Y are reversed. https://streamable.com/0n6sh In this video I reversed the Y rotation so that the X and Y are correct when the Z rotation is 180. https://streamable.com/62o0o
  13. @Arran This is what i have been using but the player seems to be rotating uncontrollably when using x,y,z. https://streamable.com/kpedz
  14. Thanks "lol". lol
  15. https://streamable.com/qkm26
  16. Hi guys, I'm working on my Spiderman script and was wondering if anyone knew how to rotate an object to always look at a position. Been trying to make the player lean with the web but no luck at all.
  17. I'm not sure also but guessing for safety measures? This is how i think the cache "works". Lets say its downloads directly from the resource folder, if a resource was to be modified and new players join they will download the newest version of the resource while the other players who were there before the resource was edited will still have that version. If someone were to find a way to edit scripts on a server without permission he wouldn't need to restart the script for the changed to happen, then as new players join he can do whatever he wants to the server. So i think the resource-cache are for resources that are ready to be downloaded by clients. Just my theory lol.
  18. When you are a wannabe spiderman.
  19. A Spiderman script where you swing from a web. No wall crawling needed.
  20. Replace the red text with this custom function if hasPermission(thePlayer) then Add this to the bottom of your code You can set the allowed groups but just separate them with a comma ",". local allowed= "Admin,Moderator,SuperModerator" function hasPermission(player) local ACLs = split(allowed, ',') for _, group in pairs(ACLs)do local ACLgroup = aclGetGroup ( group ) if ACLgroup then local accName = getAccountName(getPlayerAccount( player )) if isObjectInACLGroup ( "user.".. accName, ACLgroup ) then return true end end end end
  21. Do this on the client side. onClientPlayerDamage getElementData(source,"invincible") cancelEvent()
  22. This is because you are overwriting the variable "myCol" with the latter. Do not use the same names for the variables unless you want to overwrite it.
×
×
  • Create New...