Jump to content

Swagy

Members
  • Content Count

    87
  • Joined

  • Last visited

Everything posted by Swagy

  1. I'm trying to make the player able to move while using an animation, I don't know how because setPedAnimation freezes the ped automatically
  2. It's a promising project that I myself been working on, definitely worth talking a look, join our discord and forums falks!
  3. If you are using GUI then you can use this bit of code guiSetInputMode("no_binds_when_editing")
  4. Oh okay thanks buddy, appreciate your help
  5. So basically, all I want to do is to Apply a vehicle mod to a certain vehicle. For example I use: local vehicle = createVehicel(id, x,y,z) and then I want that vehicle mod to be replaced, but not all the vehicles with same Vehicle ID would be modded. I don't want to use shaders, because I'm willing to change the DFF file so. I don't really know how to express it but I hope you got what I meant
  6. Actually, setPedStat wouldn't help, I'm trying to make custom properties for each player, but I think it's impossible.
  7. Oh right thanks alot Zango, Is this what am I looking for tho ? function getMatrixLeft(m) return m[1][1], m[1][2], m[1][3] end function getMatrixForward(m) return m[2][1], m[2][2], m[2][3] end function getMatrixUp(m) return m[3][1], m[3][2], m[3][3] end function getMatrixPosition(m) return m[4][1], m[4][2], m[4][3] end local mat = getElementMatrix(element) -- Get the matrix x,y,z = getMatrixLeft(mat) -- Get the matrix left direction x,y,z = getMatrixForward(mat) -- Get the matrix forward direction x,y,z = getMatrixUp(mat) -- Get the matrix up direction
  8. So hello guys, I want to know which axis controls the movement in directions. For example: I want to move an obejct forwards, how to check which axis to modify to move the object forwards ?
  9. I want to use setWeaponProperty for specific player only not for the whole server. Although, I was thinking of triggerClientEvent but setWeaponProperty client-side works only for client created weapons. Any ideas?
  10. So as the title says, I'm trying to make a gallery script and I'm trying to figure out a way to access Client's screenshots (MTA files from his computer) if there is anyway to do that please mention it or if you have any alternative idea I'm glad to hear it
  11. I have always wondered if it's possible to add a new vehicle id or object id to my server ?
  12. You can make your own Friendlyfire code tho which is going to be client sided. function friendlyFire (attacker) if (isElement(source)) and (isElement(attacker)) and (getElementType(attacker) == "player") and (getElementType(source) == "player") then local aTeam = getPlayerTeam(attacker) local sTeam = getPlayerTeam(source) if (aTeam == sTeam) then cancelEvent() end end end addEventHandler("onClientPlayerDamage", root, friendlyFire)
  13. Actually this resource uses Slothbot, while I want to create my personal Ped Moving syste...
  14. It's kind of it, but I want to know what controls shall I use to reach "X" position and some stuff... You gave me an idea on the function tho, thanks
  15. you can try to introduce tables, this way: for i=550,20000 do removeWorldModel(i,10000,0,0,0) end setOcclusionsEnabled(false) setWaterLevel(-5000) for k,objects in ipairs(garageObjects) do -- garageObjects table is already defined and with values local loadedObjects = {} local a,b,c,d,e,f,g,h,i = unpack(objects) local object = createObject ( a,b,c,d,e,f,g ) table.insert(loadedObjects, object) setObjectScale(object,h or 1) setElementDoubleSided(object, i or false ) setElementDimension(object,arenaCDimension) end if (#loadedObjects >= #garageObjects) then fadeC
  16. Message me on the forum with more details.
  17. I can try to work for you, message me with more details please.
  18. Hey there, I was wondering if I can automate player's movement. In other words how to move a player to another position (without using setElementPosition). The player would walk till he reaches that position. ?
  19. Really appreciate your help, thanks. Keep up the good work mate, I loved this resource.
  20. I really love what you did in here. I believe that RP servers need such features, but I'm going to ask you if you're able to determine exact position for the object you're going to place in the car's bed ?
  21. I didn't resize them in 3Ds max I just resized them on the TXD @HunT
  22. @CodyJ(L) dude even with that program it's still the same.. no Texture, but this time, the TXD file is loaded.
  23. This idea is unique, I've never thought of teaching or learning Lua online in a discord server, it's brilliand, keep it up guys. This option would help alot.
×
×
  • Create New...