Jump to content

JAY.ANN

Members
  • Posts

    70
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by JAY.ANN

  1. There's only one script on my server. Here's the meta.xml (I don't know why, but I can't send it as a code): <meta> <oop>true</oop> <script src="server.lua" type="server" cache="false"/> <script src="shared.lua" type="shared" cache="false"/> <script src="client.lua" type="client" cache="false"/> </meta>
  2. Well, that's kinda strange... What then could be wrong, lol?
  3. I've already did that - It's on the server side. I also have OOP turned on.
  4. I can't add a player to team or get a team element/name. What's wrong with my code? First of all, In "spawnOnLogin()" function we can see that I want to force a player into a "Props" team. But it doesn't work like that. addEventHandler("onResourceStart", resourceRoot, function() propTeam = createTeam( "Props", 150, 200, 255 ) seekTeam = createTeam( "Seekers", 255, 0, 0 ) end) function setTeamBinds( player ) if isPlayerInTeam( player, "Props" ) then toggleControl( player, "fire", false ) toggleControl( player, "aim_weapon", false ) toggleControl( player, "next_weapon", false ) toggleControl( player, "previous_weapon", false ) toggleControl( player, "enter_exit", false ) toggleControl( player, "jump", false ) toggleControl( player, "crouch", false ) end end addEvent( "setTeamBinds", true ) addEventHandler( "setTeamBinds", getRootElement(), setTeamBinds ) function spawnOnLogin() spawnPlayer( source, 0, 0, 5, 0, math.random( 0, 288 ), 0, 0 ) fadeCamera( source, true ) setCameraTarget( source, source ) setPlayerTeam( source, propTeam ) setTeamBinds( source ) end addEventHandler( "onPlayerLogin", root, spawnOnLogin )
  5. Frankly speaking, I don't have any idea how does it work! That's a brilliant script, dude. I wish I could script like you Yup, I got that, thank ya!
  6. Thanks a lot for your help! I'll try to use it a bit later, after I get some rest. ty again!
  7. I'd like to replace vehicle door sounds with my own. I tried to start script that stuff, but I can't finish it. I tried to implement the buffer system, but, I guess, I still don't know what that even means lmao. I'd be very grateful for any help! Here's my code: function doorSoundCheckBuffer(vehicle, previousRatioTable, currentRatioTable) if type(previousRatioTable) == "table" and type(currentRatioTable) == "table" then end end previousDoorRatio = {} currentDoorRatio = {} function doorSoundBufferSystem(vehicle, door, value) if currentDoorRatio[vehicle] == nil then currentDoorRatio[vehicle] = {door, value} else previousDoorRatio[vehicle] = currentDoorRatio[vehicle] currentDoorRatio[vehicle] = {door, value} doorSoundCheckBuffer(vehicle, previousDoorRatio[vehicle], currentDoorRatio[vehicle]) end end addEventHandler("onClientRender", getRootElement(), function() for i, v in ipairs(getElementsByType("vehicle")) do if isElementStreamedIn(v) then for i = 0, 5 do local ratio = getVehicleDoorOpenRatio(v, i) doorSoundBufferSystem(v, i, ratio) end end end end)
  8. Well, I've been working with my script and now it works fine. Solved. Again. Xd Thanks a lot for your help!
  9. I'm not at home now but I'll try to send the code as soon as possible
  10. Well, I've been trying to do something with it in two or three different ways by using examples from mta.wiki but I didn't make it, bruh. Yup, I guess I'm too dumb in math
  11. I'm not sure that I abled to ask another question on another topic here, so therefore, I apologize in advance. Everything works fine, thank you. But now I need some help in making an "appearence animation" for my car by using setElementAlpha(). I'd like to use InterpolateBetween() but I don't have any experience of working with it.
  12. Yup, you got me right! Soon I'll answer if my problem was solved or not Solved. Thank you <3
  13. My idea is to repeat vehicle spawn like it's realized in GTA Online. So there will be a lot of points
  14. Hi. I'm kinda newbie in scripting and I need some help. local points = { {-2180, 293.3, 35.4}, {-2089, 84.2, 35.5}, {-2064, 83.7, 35.5}, } How can I get the closest point to player from that massive? I'll be very grateful for any help.
  15. No problem. I am always glad to help. In the nearest future I am thinking about to find out all of existing bugs with help of SAAW community, of course.
  16. This should help: 1) Install vanilla GTA San Andreas. 2) Clear MTA server resources. 3) If you have ENB for GTA and/or MTA - delete it. Any ENB causes too much bugs. 4) Delete CLEO, ASI loader, modloader and other modifications that uses .asi or .cleo files. P.S - If you will have this bug after all 'fixes' that I've suggested to you - try to find something out in the net.
  17. It's probably MTA collision bug, that causes missing collision of some objects. The second reason of this bug can be scripts that works not correct.
  18. Contact with me: JN#0442. I've sent an invite to you in discord.
×
×
  • Create New...