Jump to content

Simple0x47

Members
  • Posts

    1,518
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by Simple0x47

  1. Ah just add local to sum = sum + 1 local sum = sum + 1
  2. The community ones are buggy things, but sometimes they're pretty good to learn. I could help you to get done that minimap. Add me on Skype. killer.68x
  3. Try without "(" ")" local value = Armor*100/255*140/100 I tested it and it returns the good value. Maybe the error is with the script.
  4. You wanna show it to everybody all time or just sometimes?
  5. Get all players and search those who are near the vehicle to play the vehicle sound. getElementsByType() getDistanceBetweenPoints3D()
  6. local value = ( ( Armor * 100 ) / 255 ) * 140 / 100 setElementAlpha ( Bribe[player], value) And it has to work
  7. Da' web sucks. Wrong section in the forum and I suposse it's a OWL or VG based server.
  8. Use an example from the community scripts.
  9. You wanna get the % of the armour? If yes then use this: (Armor * 100) / 255 And the alpha obtained from the percentage: ( (Armor * 100) / 255 ) * 140 / 100
  10. You could search all players by using: --getElementsByType local players = getElementsByType("player") for k,v in pairs(players) do --script, v is the player --Example outputChatBox("Example", v) end
  11. I think there's some FX tutorials.
  12. You need to find a model to replace with your custom 3d model of the backpack. Then insert the models into the resource and add the item to the item system with your own values.
  13. addEventHandler( "onClientKey", root, function(button,press) if (button == "h") and (press) then if not sum then local sum = 0 end sum = sum + 1 outputChatBox("You have pressed the key H "..sum.." times") return sum end end ) It's a simple script, just add the timer and done
  14. Why don't you get the element world rotation in client side and trigger a server event with the information obtained in the client side.
  15. Simple0x47

    -

    Just modify the X - Y positions
  16. Simple0x47

    -

    What you're doing right now it's not gonna appear in most of the screens. I would recommend to you to make a simple calculation to convert your gui's and dxdraw's to "adaptive". An example is: local screenX, screenY = guiGetScreenSize() local dxDraw = dxDrawText(screenX*0.421, screenY*0.236) -- The decimals came from my gui's editor element positions on my screen divided by my screen size. For example 540/1280, 540 is the x position on my screen and 1280 is my screenX size.
  17. I think the problem why you cannot warp the player into the vehicle is because the default seat is occupied "seat id 0". So I would make a revision of the occupied seats in the vehicle and then warp the player into a free seat. getVehicleOccupants That's gonna return you a table, just make a "for" and look for the nil value in any of the keys to see any free seat in the vehicle.
  18. Anyway you don't know how to make anything. So guys please close this thread, it cannot be solved.
  19. ye i know but i dont know how to make it so i asked somone has a good heart Here all of us have a good heart. But that doesn't mean to be stupid people working for free. Just start learning or start paying money for scripts.
  20. Take a look here https://dev.mysql.com/doc/
  21. Nice, with the time I think you're going to make a Mobile APP too
  22. Lua it's better for this situation, if you wanna make OOP just use Metatables.
  23. Cody you're the king of the shaders here :v
  24. Do you guys think it's possible to make a MTA:SA Client for Linux using GTA San Andreas emulated by Wine? I would like to know your opinions. (I would like to get a Client for Linux done )
×
×
  • Create New...