Jump to content

Dretax

Members
  • Posts

    95
  • Joined

  • Last visited

Everything posted by Dretax

  1. Doesn't seem to be a solution. It's actually a code check, my problem is still that i have no siren LIGHTS.
  2. It was above, but I'm gonna repost then. addVehicleSirens(car, 1, 2, false, true, true, false) setVehicleSirensOn(car, false) setVehicleSirensOn(car, true) local boolv = setVehicleSirens (car, 1, 0, 0, 10, 145, 0, 0, 200, 150)
  3. Well I have that too. Maybe I'm placing them to a wrong position? addVehicleSirens(car, 1, 2) local boolv = setVehicleSirens (car, 1, 0, 0, 10, 145, 0, 0, 200, 150) It returns true, I'm guessing the positions shouldn't be those positions?
  4. As you can see, above I'm using that, but light doesn't appear. Why?
  5. How long is that box? (MTA site)
  6. ~~~~~~~~ Incase anyone was wondering, I thought I wouldn't leave my thread empty, the solution before was to calculate the displayable amount of characters, which in default case is boxlength / 7, and sub the last n chars.
  7. https://wiki.multitheftauto.com/wiki/SetVehicleSirens I'm kinda confused with the use. I managed to add sirens to a car, and I can enable It, but I can't see the lights. Why is that?
  8. I wanted to replace random las venturas objects with weapon models / textures. The reason i wanted to, is because I wanted to create objects with it, but It seems like it creates a white small sort of object instead. Why is this happening? I even tried replacing the col to a really smallest thing, even though i know that weapons dont have a col.
  9. I'm having trouble with dxDrawText. I have my own GUI system, that is able to draw nice textbox backgrounds, and drawing the guieditbox on it with alpha 0 (invisible). This makes it possible for me to draw nicer texts and backgrounds for the textbox instead of having the default white guiedit. Everything is fine, but there is one problem. The default MTA GuiEdit is capable of moving the text if you have exceeded the textbox's size. If setting clip to true this happens: If I set it to false, the text will stay, but I won't see the other text after the box's limit. I was thinking on calculating it out, and moving it manually somehow, but I thought I would ask first, since I might have missed something. Cheers.
  10. Your first? Let me know if you are in need of logical solutions that you are not able to solve. I started It 2 months ago, but I have the advantage due to the multiple programming language experience. Anyway, good night, thanks once more.
  11. Yeah, already mentioned above that someone linked It. I'm sorta a veteran "engineer" (Still on BSC), thanks for the explanation even though It wasn't necessary Thanks for the vehiclelightstate though, that was forgotten. Cheers.
  12. Correct answer. Returns an int indicating the state of the specified the panel. This is a value between 0 and 3, with 0 indicating the panel is undamaged and 3 indicating it is very damaged.
  13. That wouldn't lead me to check if a DOOR, or anything is broken on a vehicle..
  14. Is there an actual way to get ID and health of the vehicle components? I would like to save the broken parts on disconnection. Cheers.
  15. Dretax

    Weapon skills?

    Which would be which function? But I guess I'm totally fine with the 0 setting.
  16. Dretax

    Weapon skills?

    Really? I have seen servers making It separated. I'm guessing they quickly do a self check if they have it and set the skill to 0?
  17. Dretax

    Weapon skills?

    Bump? Still have no idea for the tec9 and rifle.
  18. Dretax

    Weapon skills?

    Ref: Weapon skills: Note: see Weapon skill levels for the values that advance weapon skills. 69: WEAPONTYPE_PISTOL_SKILL 70: WEAPONTYPE_PISTOL_SILENCED_SKILL 71: WEAPONTYPE_DESERT_EAGLE_SKILL 72: WEAPONTYPE_SHOTGUN_SKILL 73: WEAPONTYPE_SAWNOFF_SHOTGUN_SKILL 74: WEAPONTYPE_SPAS12_SHOTGUN_SKILL 75: WEAPONTYPE_MICRO_UZI_SKILL 76: WEAPONTYPE_MP5_SKILL 77: WEAPONTYPE_AK47_SKILL 78: WEAPONTYPE_M4_SKILL 79: WEAPONTYPE_SNIPERRIFLE_SKILL 80: SEX_APPEAL_CLOTHES 81: GAMBLING https://wiki.multitheftauto.com/wiki/SetPedStat
  19. --[[ Skills to upgrade: 69 = Weapon Type Pistol Skill 70 = Weapon Type Pistol Silenced Skill 71 = Weapon Type Desert Eagle Skill 72 = Weapon Type Shotgun Skill 73 = Weapon Type Sawn off Shotgun Skill 74 = Weapon Type Spas 12 Shotgun Skill 76 = Weapon Type MP5 Skill 77 = Weapon Type AK47 Skill 78 = Weapon Type M4 Skill 79 = Weapon Type Sniper Rifle Skill --]] Is Tec9 and Rifle Country rifle missing?
  20. I thought I would possibly need to use setElementHealth, that's what i started now. Thanks.
  21. https://wiki.multitheftauto.com/wiki/OnPlayerDamage I wish to modify the value "loss" manually. Is that possible for me to do?
  22. Correct one was this btw. setPedAnimation(source, "CARRY", "crry_prtial", 1, true, true, false)
  23. I didn't really find the carry walking style, but I believe the animation would not be permament, because if you would move it would disappear? No idea though. Will try that now.
  24. Yeah that sounds logical, thanks.
×
×
  • Create New...