willtxd

Members
  • Content Count

    16
  • Joined

  • Last visited

Community Reputation

0 Neutral

About willtxd

  • Rank
    Square
  • Birthday 04/06/2003

Details

  • Gang
    n3xt
  • Location
    Água Branca - Alagoas - Brasil
  • Occupation
    :~Maker
  • Interests
    Graziele My Girl <3

Recent Profile Visitors

59 profile views
  1. willtxd

    Next Roleplay

    Está afim de conhecer o melhor servidor roleplay do MTA San Andreas Venha agora para o Next Roleplay Scripts TOTALMENTE Exclusivos Registro para a Beta será aberto em breve Em breve abrirá vagas para Administradores Benefícios extras aos players que comprarem VIP antecipadamente 🔈Discord: https://discord.gg/v5kun8Y🔈 ℹFacebook: https://www.facebook.com/paginaNX/ℹ 🌐Site: http://nxtrp.com🌐 🎮Servidor: Em desenvolvimento⚠
  2. lixo fedorento kkjjkjkjk

    1. willtxd

      willtxd

      kkkkkkkkkkkkkkkkkk viado

       

  3. willtxd

    [Ajuda]Texturas bugadas no server

    debugscript: Incorrect client type for this command Um admin deu o comando no server e apareceu apenas isto
  4. willtxd

    [Ajuda]Texturas bugadas no server

    Não amigo, sou leigo nisso não sei como funciona esta parte
  5. Boa noite, alguém pode me dizer porque as texturas estão bugadas? Isso esta para todos os players, Eu não sei se é algum script do meu servidor um dos admins desativou um por um e foi ativando para achar o erro e nada, irei mandar uma foto do problema https://imgur.com/KpDm4MR
  6. willtxd

    Brasil Charmoso RP | Beta 0.1 |

    "Temos permissão do próprio dono do Brasil Charmoso FiveM" Preciso falar mais alguma coisa?
  7. willtxd

    [Ajuda]Painel de Veículos

    exatamente o que eu queria era esse painel fechar ao passar por cima do marker, pode me passar a linha de codigo? eu me perco totalmente nisso rsrs desculpa incomodar mais uma vez
  8. willtxd

    [Help] F11 Radar

    @WorthlessCynomysSorry for my english im brazilian, the map in f11 is not showing after i installed maximap resource, the map did not appear, only the blips, i stop this resource and the F11 default map dont work, do you help me?
  9. willtxd

    [Help] F11 Radar

    Hello, I would like your help, I installed the maximap script but it did not show the map in F11, just the blips, so I disabled it and F11 did not show the map on the server anymore, did I solve it?
  10. Bom galera, segundo post, e eu estou com um script muito bom de emprego de motorista de ônibus, ele é bem completinho porém os pagamentos por cada trabalho são absurdos, chegando a players ganhar de 200 a 600 mil reais por terminar o percurso, ai eu fui procurar nos scripts e tentar mudar os valores porém eles não estão com give money, e sim com um zpcount, algo assim não sei explicar, porém queria ajuda dos amigos pra mudar isso e eu poder escolher os pagamentos, gostaria de por pelo menos 2mil reais por pagamento dependendo da rota. Esse é o codigo: local PlayerBuser = {} local TempTable = {} -- PlayerBuser["431"] = { {nil, nil, -0.900, 0.9, 1.0, 0}, {nil, nil, -0.510, 1.85, 1.0, 180}, {nil, nil, 0.900, 0.9, 1.0, 0}, {nil, nil, 0.510, 1.85, 1.0, 180}, {nil, nil, 0.990, 2.5, 1.0, 0}, {nil, nil, 0.600, -1.45, 1.1, 0}, {nil, nil, 0.500, 2.5, 1.0, 0}, {nil, nil, -0.900, 0.1, 1.0, 0}, {nil, nil, -0.500, -0.7, 1.0, 0}, {nil, nil, -0.990, -1.4, 1.2, 0}, {nil, nil, -0.990, -0.7, 1.1, 0}, {nil, nil, -0.500, -1.4, 1.2, 0}, {nil, nil, 0.910, -2.2, 1.2, 0}, {nil, nil, -0.990, -2.2, 1.2, 0}, {nil, nil, -0.500, -3.0, 1.2, 0}, {nil, nil, -0.900, -3.0, 1.2, 0}, {nil, nil, 0.990, -3.0, 1.2, 0}, {nil, nil, 0.500, -3.0, 1.2, 0}, {nil, nil, 0.900, -3.8, 1.4, 0}, {nil, nil, 0, -3.7, 1.4, 0}, {nil, nil, -0.900, -3.8, 1.4, 0} } PlayerBuser["437"] = { {nil, nil, 0.45, 3.88, 1.35, 0}, {nil, nil, 0.45, 3.08, 1.35, 0}, {nil, nil, -0.95, 3.88, 1.35, 0}, {nil, nil, 0.95, 2.22, 1.35, 0}, {nil, nil, 0.55, 1.50, 1.35, 0}, {nil, nil, 0.95, 0.50, 1.35, 0}, {nil, nil, -0.95, 2.22, 1.35, 0}, {nil, nil, -0.95, 1.50, 1.35, 0}, {nil, nil, -0.45, 1.50, 1.35, 0}, {nil, nil, -0.95, 0.50, 1.35, 0}, {nil, nil, -0.45, 0.50, 1.35, 0}, {nil, nil, -0.95, -0.22, 1.35, 0}, {nil, nil, -0.95, -1.12, 1.35, 0}, {nil, nil, -0.45, -1.12, 1.35, 0}, {nil, nil, -0.95, -1.95, 1.35, 0}, {nil, nil, 0.55, -2.02, 1.35, 0}, {nil, nil, -0.45, -2.75, 1.35, 0}, {nil, nil, 0.95, -2.75, 1.35, 0}, {nil, nil, 0.55, -2.75, 1.35, 0}, {nil, nil, 0.95, -3.53, 1.35, 0}, {nil, nil, 0.55, -3.53, 1.35, 0}, {nil, nil, -0.45, -3.53, 1.35, 0}, {nil, nil, 0.55, -4.31, 1.35, 0}, {nil, nil, -0.95, -4.31, 1.35, 0}, {nil, nil, 0.95, -5.16, 1.35, 0}, {nil, nil, -0.45, -5.16, 1.35, 0}, {nil, nil, 0.95, -6.06, 1.35, 0}, {nil, nil, 0.05, -6.06, 1.35, 0}, {nil, nil, -0.95, -6.06, 1.35, 0} } PlayerBuser["459"] = { {nil, nil, -0.79, 0.15, 0.7, 0}, {nil, nil, -0.35, 0.15, 0.7, 0}, {nil, nil, -0.79, -0.55, 0.7, 0}, {nil, nil, -0.35, -0.55, 0.7, 0}, {nil, nil, -0.79, -1.15, 0.7, 0}, {nil, nil, -0.35, -1.15, 0.7, 0}, {nil, nil, -0.79, -1.90, 0.7, 0}, {nil, nil, -0.35, -1.90, 0.7, 0}, {nil, nil, -0.79, -2.65, 0.7, 0}, {nil, nil, -0.35, -2.65, 0.7, 0}, {nil, nil, -0.79, -3.30, 0.7, 0}, {nil, nil, -0.35, -3.30, 0.7, 0}, {nil, nil, 0.72, -1.15, 0.7, 0}, {nil, nil, 0.72, -1.90, 0.7, 0}, {nil, nil, 0.72, -2.65, 0.7, 0}, {nil, nil, 0.72, -3.30, 0.7, 0} } local function getPlayerEXP( player ) -- ganhar experiência if not TempTable[player] then TempTable[player] = {} TempTable[player].EXP = 0 return TempTable[player].EXP else return TempTable[player].EXP end end addCommandHandler("setexp", function ( player, cmd, integer ) if not tonumber(integer) then --outputChatBox("[INFO]#880000 / setexp [quantidade de experiência]", player, 39, 199, 43, true) return end if not TempTable[player] then TempTable[player] = {} TempTable[player].EXP = tonumber(integer) else TempTable[player].EXP = tonumber(integer) end --outputChatBox('[INFO]#880000 Quantidade atual de experiência: '.. TempTable[player].EXP ..' очков!', player, 39, 199, 43, true) end) addEvent("getJobInfo", true) addEventHandler("getJobInfo", resourceRoot, function ( index, bool ) if not client then return end local player = client if not TempTable[player] then TempTable[player] = {} end if not TempTable[player].EXP then TempTable[player].EXP = 0 end if bool then triggerClientEvent("client:getJobInfo", player, TempTable[player].EXP, index, true) else local zpcheck = PlayerBuser[player].increase local zpcount = PlayerBuser[player].ZPCount * zpcheck if PlayerBuser[player].ZPCount >= (math.floor(PlayerBuser[player].routeCount / 2)) then triggerClientEvent("client:getJobInfo", player, zpcount, index, false) else triggerClientEvent("client:getJobInfo", player, 0, index, false) end end end) local function unJobPlayer( player, text ) if PlayerBuser[player] then PlayerBuser[PlayerBuser[player].bus].seat = nil if isTimer(PlayerBuser[player].timerExit) then killTimer(PlayerBuser[player].timerExit) end triggerClientEvent(player, "client:setPlayerStartJob", player, false, PlayerBuser[player].bus) PlayerBuser[player].LimitBot_Enter = nil PlayerBuser[player].routeselect = nil PlayerBuser[player].routeNumber = nil PlayerBuser[player].Count = nil PlayerBuser[player].IntegerBot = nil PlayerBuser[player].state = nil PlayerBuser[player].countSeat = nil PlayerBuser[player].temp_index = nil if isTimer(PlayerBuser[player].timerStop) then killTimer(PlayerBuser[player].timerStop) end outputChatBox("[INFO] #FFFFFF".. text .."", player, 209, 10, 10, true) local zpcheck = PlayerBuser[player].increase local zpcount = PlayerBuser[player].ZPCount * zpcheck if PlayerBuser[player].ZPCount >= (math.floor(PlayerBuser[player].routeCount / 2)) then --outputChatBox("[INFO] #FFFFFFVocê foi creditado com +10 pontos de experiência!", player, 38, 199, 43, true) outputChatBox("[INFO] #FFFFFFSeu salário é ".. zpcount .."$!", player, 38, 199, 43, true) if TempTable[player] and TempTable[player].EXP then TempTable[player].EXP = TempTable[player].EXP + 10 else TempTable[player] = {} TempTable[player].EXP = 10 end givePlayerMoney ( player, zpcount ) else outputChatBox("[INFO] #FFFFFFVocê dirigiu menos da metade da rota e não recebeu um salário!", player, 209, 10, 10, true) end destroyElement(PlayerBuser[player].bus) PlayerBuser[player].bus = nil PlayerBuser[player].increase = nil PlayerBuser[player].ZPCount = nil PlayerBuser[player].routeCount = nil PlayerBuser[player] = nil triggerClientEvent(player, "checkJobWindow", player) end end addEvent("onPlayerStopJob", true) addEventHandler("onPlayerStopJob", resourceRoot, function ( ) if not client then return end local player = client unJobPlayer( player, "Você está feito 'O motorista'!" ) end) -- 1779, -1888, 13.66, 0, 0, 270 addEvent("onPlayerStartJob", true) addEventHandler("onPlayerStartJob", resourceRoot, function ( table, index, city ) if not client then return end local player = client if PlayerBuser[player] then return end if not PlayerBuser[table[1]] then PlayerBuser[table[1]] = {} end PlayerBuser[player] = {} PlayerBuser[player].Count = 0 PlayerBuser[player].ZPCount = 0 for _ in pairs( PlayerBuser[table[1]] ) do PlayerBuser[player].Count = PlayerBuser[player].Count + 1 end if tonumber(PlayerBuser[player].Count) >= table[4] then outputChatBox("[INFO] #FFFFFFNão há ônibus gratuitos nesta rota!", player, 209, 10, 10, true) PlayerBuser[player] = nil return end local playerEXP = getPlayerEXP(player) --[[if tonumber(playerEXP) < tonumber(table[5]) then outputChatBox("[INFO] #FFFFFFDesculpe, você não tem experiência suficiente!", player, 209, 10, 10, true) PlayerBuser[player] = nil return end]]-- triggerClientEvent(player, "client:setPlayerStartJob", player, true) outputChatBox("[INFO] #FFFFFFVocê começou o trabalho 'O motorista do ônibus'!", player, 38, 199, 43, true) if city == "LS" then PlayerBuser[player].bus = Vehicle(459, 1779, -1888, 13.66, 0, 0, 270) elseif city == "LV" then PlayerBuser[player].bus = Vehicle(459, 2766.43823, 1265.5, 11.02048, 0, 0, 270) end if index == 1 then PlayerBuser[player].bus.model = 459 local randomInteger = math.random(1, 3) if randomInteger == 1 then PlayerBuser[player].bus:setColor(28,123,209) elseif randomInteger == 2 then PlayerBuser[player].bus:setColor(28,123,209) elseif randomInteger == 3 then PlayerBuser[player].bus:setColor(28,123,209) end elseif index == 2 then PlayerBuser[player].bus.model = 431 PlayerBuser[player].bus:setColor(28,123,209) elseif index == 3 then PlayerBuser[player].bus.model = 437 PlayerBuser[player].bus:setColor(28,123,209) end -- teste adicional para cor em LV e SF if index == 2 and city == "LV" then PlayerBuser[player].bus:setColor(28,123,209) elseif index == 3 and city == "LV" then PlayerBuser[player].bus:setColor(28,123,209) end local vehicle = PlayerBuser[player].bus warpPedIntoVehicle(player, vehicle) setTimer(function ( ) triggerClientEvent("OffColVehicle", root, vehicle) end, 200, 1) PlayerBuser[player].routeIndex = index PlayerBuser[player].routeCount = #RouteIndex[table[6]] PlayerBuser[player].routeNumber = table[6] PlayerBuser[player].increase = table[7] PlayerBuser[player].routeselect = 0 PlayerBuser[vehicle] = {} PlayerBuser[player].LimitBot_Enter = 0 PlayerBuser[player].countSeat = 0 PlayerBuser[vehicle].seat = PlayerBuser[tostring(vehicle.model)] PlayerBuser[vehicle].player = player loadRoute(player, table[6]) vehicle:setData("emiTexture", "".. tostring(vehicle.model) .."/".. tostring(table[6])) if index == 3 then PlayerBuser[player].timerStop = setTimer(unJobPlayer, 900000, 1, player, "Você completou o 'Bus Driver'! (ROS)") else PlayerBuser[player].timerStop = setTimer(unJobPlayer, 300000, 1, player, "Você completou o 'Bus Driver'! (AFC)") end end) function StartEnterVehicle ( player, seat, jacked ) if not source then return end if PlayerBuser[player] then if (source ~= PlayerBuser[player].bus) then cancelEvent() end if (source == PlayerBuser[player].bus) and (seat ~= 0) then cancelEvent() end return else cancelEvent() end end addEventHandler ( "onVehicleStartEnter", resourceRoot, StartEnterVehicle ) function StartEnterVehicleRoot ( player, seat, jacked ) if not source then return end if (source.model == 431 or source.model == 459 or source.model == 437) and (seat ~= 0) then cancelEvent() return end end addEventHandler ( "onVehicleStartEnter", root, StartEnterVehicleRoot ) addEventHandler("onVehicleEnter", resourceRoot, function ( player ) if not source then return end if PlayerBuser[player] and (PlayerBuser[player].bus == source) then if isTimer(PlayerBuser[player].timerExit) then killTimer(PlayerBuser[player].timerExit) end end end) addEventHandler("onVehicleStartExit", resourceRoot, function ( player ) if not source then return end if PlayerBuser[player] then if (source == PlayerBuser[player].bus) then outputChatBox("[INFO] #FFFFFFVocê saiu do ônibus! Você tem 40 segundos para retornar.", player, 209, 10, 10, true) PlayerBuser[player].timerExit = setTimer(unJobPlayer, 40000, 1, player, "Você completou o 'Bus Driver'! (tem 40 segundos.)") end end end) function loadRoute( player, text ) local table_route = RouteIndex[text] PlayerBuser[player].routeselect = PlayerBuser[player].routeselect + 1 PlayerBuser[player].ZPCount = PlayerBuser[player].ZPCount + 1 local routeselect = PlayerBuser[player].routeselect if table_route[routeselect] == nil then unJobPlayer( player, "Você completou o trabalho 'Bus driver'!" ) else --[[if table_route[routeselect][1] == 2 then outputChatBox('ID: '..routeselect) outputChatBox('ANGLE:' ..tostring(table_route[routeselect][6])) end]] if table_route[routeselect + 1] and table_route[routeselect + 1][1] == 2 and table_route[routeselect + 1][4] then PlayerBuser[player].state = math.random(1, 9) -- se você precisar de paradas vazias if table_route[routeselect + 1][8] or (routeselect + 1) == 17 then PlayerBuser[player].state = 5 end if tonumber(PlayerBuser[player].state) ~= 5 then if PlayerBuser[player].routeIndex == 3 then PlayerBuser[player].IntegerBot = math.random(15, 20) or 20 else PlayerBuser[player].IntegerBot = math.random(2, table_route[routeselect + 1][5]) or 2 end triggerClientEvent(player, "CreateMarkerRouteBots", player, table_route[routeselect + 1][4], PlayerBuser[player].IntegerBot, table_route[routeselect + 1][6], table_route[routeselect + 1][7]) end end if table_route[routeselect][1] == 2 then triggerClientEvent(player, "CreateMarkerRoute", player, table_route[routeselect][3], true) return end if not table_route[routeselect + 1] then triggerClientEvent(player, "CreateMarkerRoute", player, table_route[routeselect][3], nil) else triggerClientEvent(player, "CreateMarkerRoute", player, table_route[routeselect][3], nil, table_route[routeselect + 1][3]) end end end function routeCheckMarker( ) if not client then return end local player = client loadRoute( player, PlayerBuser[player].routeNumber ) end addEvent("RouteCheckMarker", true) addEventHandler("RouteCheckMarker", resourceRoot, routeCheckMarker) addEvent("RouteCheckStop", true) addEventHandler("RouteCheckStop", resourceRoot, function ( ) if not client then return end local player = client local routeselect = PlayerBuser[player].routeselect local vehicle = PlayerBuser[player].bus local table_route = RouteIndex[PlayerBuser[player].routeNumber] if isTimer(PlayerBuser[player].timerStop) then resetTimer(PlayerBuser[player].timerStop) end if PlayerBuser[player] and PlayerBuser[player].bus then vehicle.frozen = true PlayerBuser[player].temp_index = 0 if isTimer(PlayerBuser[player].timeCheck) then killTimer(PlayerBuser[player].timeCheck) end if tonumber(PlayerBuser[player].state) ~= 5 then local random_exit_bot_limit = math.random(1, 4) local tables = PlayerBuser[vehicle].seat for i = 1, random_exit_bot_limit do if tables[i][1] ~= nil and (not tables[i][1].player) then PlayerBuser[player].temp_index = PlayerBuser[player].temp_index + 1 triggerClientEvent(player, "ExitBusDoorBot", player, vehicle, tables[i][1].modelid, PlayerBuser[player].temp_index, table_route[routeselect][4], table_route[routeselect][7]) tables[i][1].destroy = true vehicle:setData("table_route", tables) end end if PlayerBuser[player].temp_index == 0 then triggerClientEvent(player, "BotMissionStart", player, vehicle) end else if table_route[routeselect][8] and table_route[routeselect][8] == 1 then PlayerBuser[player].empty = true local tables = PlayerBuser[vehicle].seat PlayerBuser[player].countSeat = 0 for i = 1, #tables do if tables[i][1] ~= nil then PlayerBuser[player].countSeat = PlayerBuser[player].countSeat + 1 end end if PlayerBuser[player].countSeat == 0 then PlayerBuser[player].empty = nil triggerClientEvent(player, "client:exitAllBot", player) return end PlayerBuser[player].countSeat = 0 for i = 1, #tables do if tables[i][1] ~= nil and (not tables[i][1].player) then PlayerBuser[player].countSeat = PlayerBuser[player].countSeat + 1 triggerClientEvent(player, "ExitBusDoorBot", player, vehicle, tables[i][1].modelid, PlayerBuser[player].countSeat, table_route[routeselect][4], table_route[routeselect][7]) tables[i][1].destroy = true vehicle:setData("table_route", tables) end end return end local random_exit_bot_limit = math.random(1, 3) PlayerBuser[player].empty = true local tables = PlayerBuser[vehicle].seat PlayerBuser[player].countSeat = 0 for i = 1, random_exit_bot_limit do if tables[i][1] ~= nil then PlayerBuser[player].countSeat = PlayerBuser[player].countSeat + 1 end end if PlayerBuser[player].countSeat == 0 then PlayerBuser[player].empty = nil triggerClientEvent(player, "client:exitAllBot", player) return end PlayerBuser[player].countSeat = 0 for i = 1, random_exit_bot_limit do if tables[i][1] ~= nil and (not tables[i][1].player) then PlayerBuser[player].countSeat = PlayerBuser[player].countSeat + 1 triggerClientEvent(player, "ExitBusDoorBot", player, vehicle, tables[i][1].modelid, PlayerBuser[player].countSeat, table_route[routeselect][4], table_route[routeselect][7]) tables[i][1].destroy = true vehicle:setData("table_route", tables) end end end end end) addEvent("EnterBusDoor", true) addEventHandler("EnterBusDoor", resourceRoot, function ( veh ) if not client then return end local player = client if getPlayerMoney(player) < 10 then outputChatBox("[INFO]#880000 A tarifa do ônibus é: R$10", player, 209, 10, 10, true) return end takePlayerMoney(player, 10) local vehicle = veh if not PlayerBuser[vehicle] then PlayerBuser[vehicle] = {} PlayerBuser[vehicle].seat = PlayerBuser[tostring(vehicle.model)] end local tables = PlayerBuser[vehicle].seat for i = 1, #tables do if tables[i][1] == nil then tables[i][1] = {} tables[i][1].modelid = getElementModel(player) -- só para não escrever uma muleta tables[i][1].player = player vehicle:setData("table_route", tables) return end end end) addEvent("EnterBusDoorBots", true) addEventHandler("EnterBusDoorBots", resourceRoot, function ( vehicle, modelid ) if not client then return end local player = client local vehicle = PlayerBuser[player].bus PlayerBuser[player].LimitBot_Enter = PlayerBuser[player].LimitBot_Enter + 1 if PlayerBuser[player].LimitBot_Enter == PlayerBuser[player].IntegerBot then triggerClientEvent(player, "client:enterAllBot", player, vehicle) PlayerBuser[player].LimitBot_Enter = 0 end local tables = PlayerBuser[vehicle].seat for i = 1, #tables do if tables[i][1] == nil then tables[i][1] = {} tables[i][1].modelid = modelid vehicle:setData("table_route", tables) return end end end) addEvent("ExitBusDoorBots", true) addEventHandler("ExitBusDoorBots", resourceRoot, function ( integer ) if not client then return end local player = client if (integer == PlayerBuser[player].countSeat) or (integer == PlayerBuser[player].temp_index) then if not PlayerBuser[player].empty then triggerClientEvent(player, "BotMissionStart", player, PlayerBuser[player].bus) else PlayerBuser[player].empty = nil triggerClientEvent(player, "client:exitAllBot", player, true) end PlayerBuser[player].countSeat = 0 PlayerBuser[player].temp_index = 0 end end) addCommandHandler("testm", function ( player ) local vehicle = player.vehicle local tables = PlayerBuser["459"] for i = 1, #tables do if tables[i][1] == nil then tables[i][1] = {} tables[i][1].modelid = 28 vehicle:setData("table_route", tables) end end PlayerBuser[player].routeselect = 75 end) addEvent("RouteBusFreeze", true) addEventHandler("RouteBusFreeze", resourceRoot, function ( state ) if not client then return end local player = client if PlayerBuser[player] and PlayerBuser[player].bus then PlayerBuser[player].bus.frozen = state end end) addEvent("ExitBusDoor", true) addEventHandler("ExitBusDoor", resourceRoot, function ( vehicle ) if not client then return end local player = client detachElements( player, vehicle ) setPedAnimation ( player, false ) local tables = PlayerBuser[vehicle].seat for i = 1, #tables do if tables[i][1] and tables[i][1].player == player then tables[i][1].destroy = true triggerClientEvent(root, "table_route_exit", root, player, vehicle, tables) return end end end) addEvent( "onElementSound", true ) addEventHandler( "onElementSound", root, function ( snd_name, distance, stop ) triggerClientEvent( "onElementSoundSync", source, snd_name, distance, stop ) end ) addEvent("TableRouteUpdate", true) addEventHandler("TableRouteUpdate", resourceRoot, function ( vehicle, tables ) PlayerBuser[vehicle].seat = tables end) addEventHandler("onElementDestroy", getRootElement(), function () if source.type == "vehicle" then if source.model == 431 or source.model == 437 or source.model == 459 then if PlayerBuser[source] and isElement(PlayerBuser[source].player) then triggerClientEvent(PlayerBuser[source].player, "client:setPlayerStartJob", PlayerBuser[source].player, false, source) end end end end) addEvent("updateBuserCount", true) addEventHandler("updateBuserCount", resourceRoot, function ( vehicle, count ) if not client then return end local player = client if PlayerBuser[player] then PlayerBuser[player].countSeat = tonumber(count + 1) PlayerBuser[player].temp_index = tonumber(count + 1) end end)
  11. willtxd

    [Ajuda]Painel de Veículos

    Amigo eu puz de inicio o codigo no arquivo client.lua que era onde tinha a bind porém o marker não foi criado, daí eu resolvi colar o codigo no server.lua ai o marker criou, porém não abriu o painel, simplesmente não ocorre nada local theMarker = createMarker (2154.4814453125, -1146.4481201172, 23, "cylinder", 2, 255, 255, 0, 150) addEventHandler ("onClientMarkerHit" , theMarker, function (thePlayer, matchingDimension) if thePlayer == localPlayer and matchingDimension and (not getElementData (localPlayer, "prison")) then if not isInColExport () then guiSetVisible(Window_VS, not guiGetVisible(Window_VS)) guiSetVisible (Window_CHK, false) playSound(":EQPsons/open.wav") showCursor(guiGetVisible(Window_VS)) vehsa = getElementData(localPlayer,"spawnedcars") or {} vehs = "" for ind,veh in ipairs(vehsa) do if vehs ~= "" then vehs = vehs..", "..veh.."" else vehs = vehs..""..veh.."" end end end end end) @DNL291Eu usei a sua linha de código funcionou mano porém ele não fecha saca, tem como por pra fechar de alguma forma?
  12. willtxd

    [Ajuda]Painel de Veículos

    Obrigado por ajudar amigo, vou explicar pra vocês o que eu estou tentando fazer, seguinte, eu estou com um script de concessionaria e nele tem um painel que mostra os veículos que você tem, porém o que eu quero fazer é criar uma garagem que consiste em abrir esse painel somente em um lugar específico como no caso eu irei colocar no estacionamento ao lado da concessionaria, por isso queria desbindar o F2 e colocar pra abrir somente nesse marker no estacionamento, seria mais ou menos igual a garagem do fivem entende? Esse script eu posso colocar ele direto com as coordenadas certinho que ele irá funcionar?
  13. ╔═══ [BRASIL CHARMOSO RP] ╠► Discord : https://discord.gg/xyx8Z64 ╠► IP: mtasa://195.154.252.140:22193 ╠═════════════════════════════════════ ╠► Criação de gangs pros primeiros players ╠► Vagas para staff ╠► Vagas para SAMU, Mecânico, PM... ╠► Estamos a procura de Scripter's ╠═════════════════════════════════════ ╠► Ping abaixo de 100 ╠► Skins de carros, motos, brasileiras e importadas ╠► Empregos legais e ilegais ╠► Temos permissão do próprio dono do Brasil Charmoso FiveM ╚═══ [BRASIL CHARMOSO RP]
  14. willtxd

    [Ajuda]Painel de Veículos

    Amigo, como disse eu ainda sou leigo, poderia me explicar melhor? No caso eu crio o marker e onde tem marker no script eu coloco as coordenadas x,y,z, cylinder que seria o tipo de marker, e o tamanho e o rgb? De vdd desculpa mas como disse sou mt novato no assunto ksks Eu li a wiki mas nn entendi mt bem
  15. willtxd

    [Ajuda]Painel de Veículos

    Amigo sou leigo ainda, mas onde vc pos marker depois do OnClientMarkerHit seria pra eu colocar as coordenadas do marker? Desculpa se falei bobagens mas realmente sou iniciante no assunto rsrs, e se sim, essa linha de código eu poderia fazer como um script separado e ela irá funcionar normalmente ou eu devo substituir ela em algo na linha de código que eu pus acima?