_Pattif_

Members
  • Content Count

    5
  • Joined

  • Last visited

Community Reputation

0 Neutral

About _Pattif_

  • Rank
    Vic
  • Birthday 18/07/2000

Details

  • Location
    Brazil
  1. Hello friends! How are you? So. I was developing a code when I realized an error. Can someone help me? My code: local namep = player getPlayerFromName ( receber ) outputChatBox ( "#00ffffPRF: #c1c1c1Você acaba de pagar um policial!#c1c1c1!", thePlayer, 255, 255, 255, true ) outputChatBox ( "#00ffffPRF: #c1c1c1Você acaba de receber seu salário de #00ffffR$20.000#c1c1c1!", namep, 255, 255, 255, true ) givePlayerMoney ( namep, 20000 ) The error is this: [2019-03-26 15:14:58] WARNING: PRF/prf.lua:51: Bad argument @ 'givePlayerMoney' [Expected element at argument 1, got nil] [2019-03-26 15:15:04] WARNING: PRF/prf.lua:51: Bad argument @ 'givePlayerMoney' [Expected element at argument 1, got nil] Tnx
  2. ╔══════════════════╗ ║😎 ROLEPLAY BRASIL MTA 2.0 ║» Carros brasileiros ║» Motos brasileiras ║» Corporações grátis ║» Gangues grátis ║» 100% vida real ║» Vagas na staff ╠══════════════════╣ ║• Entre já e confira! ║➜ mtasa://198.50.195.143:22153 ╚══════════════════╝ Entra aí e ajuda noix ;D Acabei de configurar. Dia 26/03/2019 é a inauguração valendo VIP. Vale muito apena! Vlw ❤️
  3. _Pattif_

    Got Boolean

    I have the same problem. If I can solve it, I'll call you ... ] My code: function throwPlayerThroughWindow(thePlayer, x, y, z) local accName = getPlayerAccount (thePlayer) local cintover = getAccountData ( accName, "cinto" ) if cintover == "on" then outputChatBox ( "#00ffff[CIDADÃO] #c1c1c1Você bateu, mas como está utilizando o cinto de segurança, não se machucou.", thePlayer, 255, 255, 255, true ) else if thePlayer then local occupants = getVehicleOccupants ( thePlayer ) local seats = getVehicleMaxPassengers( thePlayer ) if occupants[0] == client then for seat = 0, seats do local occupant = occupants[seat] -- Get the occupant if occupant and getElementType(occupant) == "player" then -- If the seat is occupied by a player... --exports['anticheat-system']:changeProtectedElementDataEx(occupant, "realinvehicle", 0, false) removePedFromVehicle(occupant, vehicle) setElementPosition(occupant, x, y, z) setPedAnimation(occupant, "CRACK", "crckdeth2", 10000, true, false, false) setTimer(setPedAnimation, 10005, 1, occupant) end end end end end end addEvent("crashThrowPlayerFromVehicle", true) addEventHandler("crashThrowPlayerFromVehicle", getRootElement(), throwPlayerThroughWindow) *I tried to change the source through thePlayer
  4. _Pattif_

    Help-Me

    Hello my friend! I think I've found your problem! Notice that where it's marked in print, do we have different arguments? Maybe this is it. , Try this code: local Veiculos = {400} -- IDs dos Veículos. Tulio = {} function CreateVehicle (source) if getElementData (source, "Pegou", true) then outputChatBox ('#00bfffAguarde #ffffff20 #00bfffsegundos para pegar novamente.',source,255,255,255,true) return end if isElement(Tulio[source]) then destroyElement (Tulio[source]) Tulio[source] = nil end local accName = getAccountName ( getPlayerAccount (Tulio) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "JOGADOR" ) ) then local x,y,z = getElementPosition (source) local Cars = Veiculos[math.random(#Veiculos)] Tulio[source] = createVehicle (Veiculos,x,y,z) warpPedIntoVehicle (source,Tulio[source]) outputChatBox ('#888888[#FF8800SERVIDOR#888888]'..getPlayerName(source)..' #FFFFFFPegou um veiculo digitando #FF8800/veh', root, 255, 255, 255, true) setElementData (source, "Pegou",true) setTimer (setElementData, 20000, 1, source, "Pegou", false) end addCommandHandler ("veh", CreateVehicle) function DestroyVeiculo () destroyElement (Tulio[source]) end addEventHandler ("onPlayerLogout", root, DestroyVeiculo) addEventHandler ("onPlayerQuit", root, DestroyVeiculo) addEventHandler ("onPlayerWasted", root, DestroyVeiculo)
  5. Hello, dude! Try changing your File Transfer Protocol (FTP) client. I was having this same problem yesterday and I solved it. - Good luck! - I am THE DUCK OF SHOE ;D