Jump to content

Gab MTA

Members
  • Posts

    9
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Gab MTA's Achievements

Newbie

Newbie (4/54)

0

Reputation

  1. opa mano usei teu script e deu certo, mas vc sabe como faz pra tipo, quando o player tiver com 20% ou menos de vida executar a animação
  2. opa, então queria saber como eu posso fazer um script que tipo, quanto o jogador tiver -30% da vida, ele fazer animação de caido, mas não conseguir bugar animação e sair, e ngm poder finalizar ele, quero as funções de animação, não conseguir bugar a animação e ngm poder finalizar
  3. man obg, mas c sabe a função de dar arma
  4. tente usar isso: setVehicleColor( Veiculo, 255, 255, 255 ) se não conceguir usar, mande o script aqui para eu tentar concertar.
  5. Bem estou treinando bastante painel-dx na programação lua, mas eu preciso de ajuda em 1 coisa, eu queria saber qual a função de dar e destruir o veiculo, igual ao painel P. Outra coisa que está dando erro é a função de dar arma, no botão que da skin e arma, a skin vem, mas não da a arma. Quem poder estar me ajudando ai agradeço script: local screenW, screenH = guiGetScreenSize() local Exibir_Painel = false function PainelDX () dxDrawRectangle(screenW * 0.2258, screenH * 0.2474, screenW * 0.5344, screenH * 0.5182, tocolor(0, 0, 0, 138), false) dxDrawText("PAINEL - CORP", screenW * 0.4383, screenH * 0.2604, screenW * 0.5461, screenH * 0.2995, tocolor(255, 255, 255, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawImage(screenW * 0.2258, screenH * 0.2474, screenW * 0.0953, screenH * 0.1458, ":painel-dx/files/Logo.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawText("COPYRIGHT © Brasil Mundo Leve - 2021", screenW * 0.4047, screenH * 0.7656, screenW * 0.5813, screenH * 0.7852, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false) dxDrawImage(screenW * 0.2820, screenH * 0.3984, screenW * 0.0773, screenH * 0.1458, ":painel-dx/files/img/police.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(screenW * 0.4133, screenH * 0.4375, screenW * 0.1547, screenH * 0.1068, ":painel-dx/files/img/vtr.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(screenW * 0.6250, screenH * 0.4583, screenW * 0.1219, screenH * 0.0859, ":painel-dx/files/img/heli.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawRectangle(screenW * 0.2773, screenH * 0.5482, screenW * 0.0945, screenH * 0.0404, tocolor(254, 107, 0, 254), false) dxDrawText("Farda 1", screenW * 0.2773, screenH * 0.5482, screenW * 0.3719, screenH * 0.5885, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(screenW * 0.2773, screenH * 0.6016, screenW * 0.0945, screenH * 0.0404, tocolor(254, 107, 0, 254), false) dxDrawText("Farda 2", screenW * 0.2773, screenH * 0.6016, screenW * 0.3719, screenH * 0.6419, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(screenW * 0.2773, screenH * 0.6549, screenW * 0.0945, screenH * 0.0404, tocolor(254, 107, 0, 254), false) dxDrawText("Farda 3", screenW * 0.2773, screenH * 0.6549, screenW * 0.3719, screenH * 0.6953, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(screenW * 0.2773, screenH * 0.7083, screenW * 0.0945, screenH * 0.0404, tocolor(254, 107, 0, 254), false) dxDrawText("Farda 4", screenW * 0.2773, screenH * 0.7083, screenW * 0.3719, screenH * 0.7487, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(screenW * 0.4430, screenH * 0.5482, screenW * 0.0945, screenH * 0.0404, tocolor(254, 107, 0, 254), false) dxDrawText("Viatura 1", screenW * 0.4430, screenH * 0.5482, screenW * 0.5375, screenH * 0.5885, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(screenW * 0.4430, screenH * 0.6016, screenW * 0.0945, screenH * 0.0404, tocolor(254, 107, 0, 254), false) dxDrawText("Viatura 2", screenW * 0.4430, screenH * 0.6016, screenW * 0.5375, screenH * 0.6419, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(screenW * 0.4430, screenH * 0.6549, screenW * 0.0945, screenH * 0.0404, tocolor(254, 107, 0, 254), false) dxDrawText("Viatura 3", screenW * 0.4430, screenH * 0.6549, screenW * 0.5375, screenH * 0.6953, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(screenW * 0.6398, screenH * 0.5482, screenW * 0.0945, screenH * 0.0404, tocolor(254, 107, 0, 254), false) dxDrawText("Helicoptero", screenW * 0.6398, screenH * 0.5482, screenW * 0.7344, screenH * 0.5885, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(screenW * 0.4430, screenH * 0.7083, screenW * 0.0945, screenH * 0.0404, tocolor(254, 107, 0, 254), false) dxDrawText("Guardar Viatura", screenW * 0.4430, screenH * 0.7083, screenW * 0.5375, screenH * 0.7487, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(screenW * 0.6398, screenH * 0.6016, screenW * 0.0945, screenH * 0.0404, tocolor(254, 107, 0, 254), false) dxDrawText("Guardar Helicoptero", screenW * 0.6398, screenH * 0.6016, screenW * 0.7344, screenH * 0.6419, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(screenW * 0.6398, screenH * 0.2656, screenW * 0.1070, screenH * 0.0729, tocolor(244, 92, 0, 254), false) dxDrawText("ARMAS", screenW * 0.6406, screenH * 0.2656, screenW * 0.7469, screenH * 0.3385, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawRectangle(763, 534, 200, 44, tocolor(244, 92, 0, 254), false) dxDrawText("APAISANA", screenW * 0.5961, screenH * 0.6953, screenW * 0.7523, screenH * 0.7487, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) end addCommandHandler("treino", function() if Exibir_Painel == false then addEventHandler("onClientRender", getRootElement(), PainelDX) Exibir_Painel = true showCursor(true) else removeEventHandler("onClientRender", getRootElement(), PainelDX) Exibir_Painel = false showCursor(false) end end) function isMouseInPosition ( x, y, width, height ) if ( not isCursorShowing( ) ) then return false end local sx, sy = guiGetScreenSize ( ) local cx, cy = getCursorPosition ( ) local cx, cy = ( cx * sx ), ( cy * sy ) return ( ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) ) end -- Modified version for DX Text function isCursorOverText(posX, posY, sizeX, sizeY) if ( not isCursorShowing( ) ) then return false end local cX, cY = getCursorPosition() local screenWidth, screenHeight = guiGetScreenSize() local cX, cY = (cX*screenWidth), (cY*screenHeight) return ( (cX >= posX and cX <= posX+(sizeX - posX)) and (cY >= posY and cY <= posY+(sizeY - posY)) ) end addEventHandler("onClientClick", getRootElement(), function(button, state) if button=="left" and state=="down" then if Exibir_Painel == true then if isMouseInPosition(screenW * 0.2773, screenH * 0.5482, screenW * 0.0945, screenH * 0.0404) then outputChatBox("#FFA500[BML - INFO] #FFFFFF Você pegou a Farda 1 com sucesso!", 255, 255, 255, true) setElementModel(localPlayer, 73) end end end end) addEventHandler("onClientClick", getRootElement(), function(button, state) if button=="left" and state=="down" then if Exibir_Painel == true then if isMouseInPosition(screenW * 0.2773, screenH * 0.6016, screenW * 0.0945, screenH * 0.0404) then outputChatBox("#FFA500[BML - ERRO]#FFFFFF Você não possue essa Farda!", 255, 255, 255, true) end end end end) addEventHandler("onClientClick", getRootElement(), function(button, state) if button=="left" and state=="down" then if Exibir_Painel == true then if isMouseInPosition(screenW * 0.2773, screenH * 0.6549, screenW * 0.0945, screenH * 0.0404) then outputChatBox("#FFA500[BML - ERRO]#FFFFFF Você não possue essa Farda!", 255, 255, 255, true) end end end end) addEventHandler("onClientClick", getRootElement(), function(button, state) if button=="left" and state=="down" then if Exibir_Painel == true then if isMouseInPosition(screenW * 0.2773, screenH * 0.7083, screenW * 0.0945, screenH * 0.0404) then outputChatBox("#FFA500[BML - ERRO]#FFFFFF Você não possue essa Farda!", 255, 255, 255, true) end end end end) addEventHandler("onClientClick", getRootElement(), function(button, state) if button=="left" and state=="down" then if Exibir_Painel == true then if isMouseInPosition(screenW * 0.4430, screenH * 0.5482, screenW * 0.0945, screenH * 0.0404) then local x,y,z = getElementPosition(localPlayer) veh = createVehicle(596, x,y,z) outputChatBox("#FFA500[BML - INFO] #FFFFFFVocê pegou a Viatura 1 com sucesso!", 255, 255, 255, true) (função de dar o veiculo aqui) end end end end) addEventHandler("onClientClick", getRootElement(), function(button, state) if button=="left" and state=="down" then if Exibir_Painel == true then if isMouseInPosition(screenW * 0.4430, screenH * 0.6016, screenW * 0.0945, screenH * 0.0404) then outputChatBox("#FFA500[BML - ERRO]#FFFFFFVocê não possue essa Viatura!", 255, 255, 255, true) end end end end) addEventHandler("onClientClick", getRootElement(), function(button, state) if button=="left" and state=="down" then if Exibir_Painel == true then if isMouseInPosition(screenW * 0.4430, screenH * 0.6549, screenW * 0.0945, screenH * 0.0404) then outputChatBox("#FFA500[BML - ERRO]#FFFFFFVocê não possue essa Viatura!", 255, 255, 255, true) end end end end) addEventHandler("onClientClick", getRootElement(), function(button, state) if button=="left" and state=="down" then if Exibir_Painel == true then if isMouseInPosition(screenW * 0.6398, screenH * 0.5482, screenW * 0.0945, screenH * 0.0404) then outputChatBox("#FFA500[BML - INFO] #FFFFFFVocê pegou o Helicoptero com sucesso!", 255, 255, 255, true) (função de dar o veiculo aqui) end end end end) addEventHandler("onClientClick", getRootElement(), function(button, state) if button=="left" and state=="down" then if Exibir_Painel == true then if isMouseInPosition(screenW * 0.4430, screenH * 0.7083, screenW * 0.0945, screenH * 0.0404) then outputChatBox("#FFA500[BML - INFO] #FFFFFFVocê guardou a Viatura com sucesso!", 255, 255, 255, true) (função de destruir i veiculo aqui) end end end end) addEventHandler("onClientClick", getRootElement(), function(button, state) if button=="left" and state=="down" then if Exibir_Painel == true then if isMouseInPosition(screenW * 0.6398, screenH * 0.6016, screenW * 0.0945, screenH * 0.0404) then outputChatBox("#FFA500[BML - INFO] #FFFFFFVocê guardou o Helicoptero com sucesso!", 255, 255, 255, true) (função de destruir o veiculo aqui) end end end end) addEventHandler("onClientClick", getRootElement(), function(button, state) if button=="left" and state=="down" then if Exibir_Painel == true then if isMouseInPosition(screenW * 0.6398, screenH * 0.2656, screenW * 0.1070, screenH * 0.0729) then outputChatBox("#FFA500[BML - INFO] #FFFFFFVocê pegou as Armas com sucesso", 255, 255, 255, true) giveWeapon ( source, 1, 1 ) giveWeapon ( source, 3, 1 ) giveWeapon ( source, 23, 9999 ) giveWeapon ( source, 25, 9999 ) giveWeapon ( source, 29, 9999 ) giveWeapon ( source, 31, 9999 ) giveWeapon ( source, 16, 9999 ) giveWeapon ( source, 44, 1 ) setPedArmor ( source, 100 ) setElementHealth ( source, 100 ) end end end end) addEventHandler("onClientClick", getRootElement(), function(button, state) if button=="left" and state=="down" then if Exibir_Painel == true then if isMouseInPosition(screenW * 0.5961, screenH * 0.6953, screenW * 0.7523, screenH * 0.7487) then outputChatBox("#FFA500[BML - INFO] #FFFFFFVocê pegou o Pack Apaisana com sucesso", 255, 255, 255, true) setElementModel(localPlayer, 0) giveWeapon ( source, 1, 1 ) giveWeapon ( source, 24, 9999 ) setPedArmor ( source, 100 ) setElementHealth ( source, 100 ) end end end end) OBS: se vc for editar meu script, os lugares para colocar as funções estão entre parenteses, mas se for mandar o nome da função tambem ajuda dms
  6. fiz uma hand para vtr da minha corp, mas está capotando muito fácil, se eu der uma curva sem freiar ja capota, se alguem que manja puder me ajudar eu agradeço function loadHandling2(v) ----- HAND if getElementModel(v) == 596 then setVehicleHandling(v, "mass", 1000) setVehicleHandling(v, "turnMass", 3000) setVehicleHandling(v, "dragCoeff", 2) setVehicleHandling(v, "centerOfMass", { 0, 0.3, 0.1 } ) setVehicleHandling(v, "percentSubmerged", 75) setVehicleHandling(v, "tractionMultiplier", 0.7) setVehicleHandling(v, "tractionLoss", 1.2) setVehicleHandling(v, "tractionBias", 0.52) setVehicleHandling(v, "numberOfGears", 5) setVehicleHandling(v, "maxVelocity", 240) setVehicleHandling(v, "engineAcceleration", 17) setVehicleHandling(v, "engineInertia", 20) setVehicleHandling(v, "driveType", "awd") setVehicleHandling(v, "engineType", "petrol") setVehicleHandling(v, "brakeDeceleration", 9999) setVehicleHandling(v, "ABS", false) setVehicleHandling(v, "steeringLock", 35) setVehicleHandling(v, "suspensionForceLevel", 1) setVehicleHandling(v, "suspensionDamping", 0.1) setVehicleHandling(v, "suspensionHighSpeedDamping", 0.) setVehicleHandling(v, "suspensionUpperLimit", 0.3) setVehicleHandling(v, "suspensionLowerLimit", -0.05) setVehicleHandling(v, "suspensionFrontRearBias", 0.4) setVehicleHandling(v, "suspensionAntiDiveMultiplier", 0.5) setVehicleHandling(v, "seatOffsetDistance", 0.2) setVehicleHandling(v, "collisionDamageMultiplier", 1) setVehicleHandling(v, "monetary", 25000) setVehicleHandling(v, "modelFlags", 0x40000001) setVehicleHandling(v, "handlingFlags", 0x10308803) setVehicleHandling(v, "headLight", 0) setVehicleHandling(v, "tailLight", 1) setVehicleHandling(v, "animGroup", 0) end end function loadHandlings2() for k, v in ipairs(getElementsByType("vehicle")) do loadHandling2(v) end end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), loadHandlings2) addEventHandler("onVehicleEnter", root, function(player) --setVehicleHandling(source, false) loadHandling2(source) end) --[[ function resetHandling() for k, v in ipairs(getElementsByType("vehicle")) do for k1,v1 in ipairs(setModelHandling(getVehicleModel(v))) do -- setVehicleHandling(v, k1, nil) end end end addEventHandler("onResourceStop", getResourceRootElement(getThisResource()), resetHandling)]]--
  7. Bom fiz um painel DX pro meu servidor de treino, mas estou com duvida em uma coisa. Qual a função de setar veículo? O Script está assim atualmente: local screenW, screenH = guiGetScreenSize() local Exibir_Painel = false function PainelDX () dxDrawRectangle(screenW * 0.3219, screenH * 0.0755, screenW * 0.3633, screenH * 0.7643, tocolor(13, 0, 13, 255), false) dxDrawText("Painel Treino", screenW * 0.4578, screenH * 0.1055, screenW * 0.5359, screenH * 0.1432, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawRectangle(screenW * 0.4094, screenH * 0.2070, screenW * 0.1992, screenH * 0.1003, tocolor(213, 0, 213, 255), false) dxDrawRectangle(screenW * 0.4094, screenH * 0.3932, screenW * 0.1992, screenH * 0.1003, tocolor(213, 0, 213, 255), false) dxDrawRectangle(screenW * 0.4094, screenH * 0.5898, screenW * 0.1992, screenH * 0.1003, tocolor(213, 0, 213, 255), false) dxDrawText("By Baiano", screenW * 0.4578, screenH * 0.7630, screenW * 0.5359, screenH * 0.8008, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("GTR", screenW * 0.4094, screenH * 0.2070, screenW * 0.6086, screenH * 0.3073, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("Skin", screenW * 0.4094, screenH * 0.3932, screenW * 0.6086, screenH * 0.4935, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("Armas + Colete", screenW * 0.4094, screenH * 0.5898, screenW * 0.6086, screenH * 0.6901, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) end addCommandHandler("treino", function() if Exibir_Painel == false then addEventHandler("onClientRender", getRootElement(), PainelDX) Exibir_Painel = true showCursor(true) else removeEventHandler("onClientRender", getRootElement(), PainelDX) Exibir_Painel = false showCursor(false) end end) function isMouseInPosition ( x, y, width, height ) if ( not isCursorShowing( ) ) then return false end local sx, sy = guiGetScreenSize ( ) local cx, cy = getCursorPosition ( ) local cx, cy = ( cx * sx ), ( cy * sy ) return ( ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) ) end -- Modified version for DX Text function isCursorOverText(posX, posY, sizeX, sizeY) if ( not isCursorShowing( ) ) then return false end local cX, cY = getCursorPosition() local screenWidth, screenHeight = guiGetScreenSize() local cX, cY = (cX*screenWidth), (cY*screenHeight) return ( (cX >= posX and cX <= posX+(sizeX - posX)) and (cY >= posY and cY <= posY+(sizeY - posY)) ) end addEventHandler("onClientClick", getRootElement(), function(button, state) if button=="left" and state=="down" then if Exibir_Painel == true then if isMouseInPosition(screenW * 0.4094, screenH * 0.2070, screenW * 0.1992, screenH * 0.1003) then (função de setar veículo aqui) end end end end) addEventHandler("onClientClick", getRootElement(), function(button, state) if button=="left" and state=="down" then if Exibir_Painel == true then if isMouseInPosition(screenW * 0.4094, screenH * 0.3932, screenW * 0.1992, screenH * 0.1003) then setElementModel(localPlayer, 73) end end end end) addEventHandler("onClientClick", getRootElement(), function(button, state) if button=="left" and state=="down" then if Exibir_Painel == true then if isMouseInPosition(screenW * 0.4094, screenH * 0.5898, screenW * 0.1992, screenH * 0.1003) then setPedArmor(localPlayer, 100) end end end end) Se alguém poder ajudar ai agradeço mt
  8. Tente isso: function loadHandling(v) if getElementModel(v) == 560 then setVehicleHandling(v, "mass", 1600) setVehicleHandling(v, "turnMass", 3000) setVehicleHandling(v, "dragCoeff", 1.8) setVehicleHandling(v, "centerOfMass", { 0, 0.15, -0.3 } ) setVehicleHandling(v, "percentSubmerged", 75) setVehicleHandling(v, "tractionMultiplier", 0.9) setVehicleHandling(v, "tractionLoss", 0.9) setVehicleHandling(v, "tractionBias", 0.497) setVehicleHandling(v, "numberOfGears", 5) setVehicleHandling(v, "maxVelocity", 211) setVehicleHandling(v, "engineAcceleration", 15) setVehicleHandling(v, "engineInertia", 50) setVehicleHandling(v, "driveType", "awd") setVehicleHandling(v, "engineType", "petrol") setVehicleHandling(v, "brakeDeceleration", 50) setVehicleHandling(v, "ABS", false) setVehicleHandling(v, "steeringLock", 35) setVehicleHandling(v, "headLight", 0) setVehicleHandling(v, "tailLight", 1) setVehicleHandling(v, "animGroup", 0) setVehicleHandling(v, "suspensionUpperLimit", 1) setVehicleHandling(v, "suspensionLowerLimit", -0.3) end
  9. Bom eu fiz uma hand para as viaturas do meu servidor, mas alguma função está fazendo ela capotar na primeira curva e eu não sei qual é. Bom preciso que alguem me ajude a concertar essa hand e fazer com que ela faça o contrario, que ela não capote fácil. Quem poder me ajudar editando ela eu agradeço dms function loadHandling2(v) ----- HAND if getElementModel(v) == 596 then setVehicleHandling(v, "mass", 1000) setVehicleHandling(v, "turnMass", 3000) setVehicleHandling(v, "dragCoeff", 2) setVehicleHandling(v, "centerOfMass", { 0, 0.3, 0.1 } ) setVehicleHandling(v, "percentSubmerged", 75) setVehicleHandling(v, "tractionMultiplier", 0.7) setVehicleHandling(v, "tractionLoss", 1.2) setVehicleHandling(v, "tractionBias", 0.52) setVehicleHandling(v, "numberOfGears", 5) setVehicleHandling(v, "maxVelocity", 240) setVehicleHandling(v, "engineAcceleration", 17) setVehicleHandling(v, "engineInertia", 20) setVehicleHandling(v, "driveType", "awd") setVehicleHandling(v, "engineType", "petrol") setVehicleHandling(v, "brakeDeceleration", 9999) setVehicleHandling(v, "ABS", false) setVehicleHandling(v, "steeringLock", 35) setVehicleHandling(v, "suspensionForceLevel", 1) setVehicleHandling(v, "suspensionDamping", 0.1) setVehicleHandling(v, "suspensionHighSpeedDamping", 0.) setVehicleHandling(v, "suspensionUpperLimit", 0.3) setVehicleHandling(v, "suspensionLowerLimit", -0.05) setVehicleHandling(v, "suspensionFrontRearBias", 0.4) setVehicleHandling(v, "suspensionAntiDiveMultiplier", 0.5) setVehicleHandling(v, "seatOffsetDistance", 0.2) setVehicleHandling(v, "collisionDamageMultiplier", 1) setVehicleHandling(v, "monetary", 25000) setVehicleHandling(v, "modelFlags", 0x40000001) setVehicleHandling(v, "handlingFlags", 0x10308803) setVehicleHandling(v, "headLight", 0) setVehicleHandling(v, "tailLight", 1) setVehicleHandling(v, "animGroup", 0) end end function loadHandlings2() for k, v in ipairs(getElementsByType("vehicle")) do loadHandling2(v) end end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), loadHandlings2) addEventHandler("onVehicleEnter", root, function(player) --setVehicleHandling(source, false) loadHandling2(source) end) --[[ function resetHandling() for k, v in ipairs(getElementsByType("vehicle")) do for k1,v1 in ipairs(setModelHandling(getVehicleModel(v))) do -- setVehicleHandling(v, k1, nil) end end end addEventHandler("onResourceStop", getResourceRootElement(getThisResource()), resetHandling)]]--
×
×
  • Create New...