Jump to content

Ernoso

Members
  • Content Count

    8
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Ernoso

  • Rank
    Newbie
  • Birthday 29/03/1998

Details

  • Gang
    EvoRust
  • Location
    Belo Horizonte, Brazil
  • Occupation
    Scripter
  • Interests
    Women

Recent Profile Visitors

498 profile views
  1. Hey, guys! I need some help, please! I have a Rust server for MTA:SA, but there is lagging FPS a lot for all players and I think bone attach is the problem cause a lot of errors are appearing on debugscript like dup1055x Errors: http://prnt.sc/drdrf8 (IT DOESN'T STOP, IT'S LIKE A INFINITE LOOP!) This is my bone_attach_c file function sendReadyMessage() triggerServerEvent("boneAttach_requestAttachmentData",root) end addEventHandler("onClientResourceStart",resourceRoot,sendReadyMessage) function getAttachmentData(ped,bone,x,y,z,rx,ry,rz) for element,att_ped in pairs(ped) do se
  2. Still not working, the message doesn't appears on the chat...
  3. Hello, guys! I have a simple problem in my groupsystem, there is a problem sending messages on teamsay, I'm trying to use cancelEvent and outputChatBox but the message doesn't appears on the chat, look at my function: function getPlayersInsideGroup (group) for i, allplayers in ipairs(getElementsByType("player")) do local pedGang = getElementData(allplayers,"Group") local theGang = group if ( pedGang == theGang ) then playersInside = allplayers return playersInside end end end function playerSentGroupMsg (message, messageType) cancelEvent() if ( messageType == 2 ) then i
  4. Thank you all guys! it's working now, sorry if i'm kinda late.
  5. Hi, I need some help here... well.. I simple script that saves what a col has and how many it has. local tentItensTable = { {"Assault Rifle"}, {"Motorcycle"}, } for i, data in ipairs(tentItensTable) do itens = getElementData(thecol,data[1]) end --[[ saving line --]] dbExec(thedatabase, "INSERT INTO bau_obj VALUES (?,?,?,?,?,?,?,?,?)", numeros, modelo, x, y, z, rx, ry, rz, itens) --[[ saving line --]] The "itens" will save how many items the col has that is inside the "tentItensTable", but it's not saving! it's saving everything, but it's not saving the items... Can you guys hel
  6. Thank you, it's working now! I removed the createPostos() function from the timer and instead added a setElementData function! and I also changed the number 1 to 0 in the timer. This is how it looks now : function createPostos () for i,postos in ipairs(posicoesPostos) do local x,y,z = postos[1],postos[2],postos[3] postosCol = createColSphere(x,y,z,3) setElementData(postosCol,"postogasosa",true) setElementData(postosCol,"gasosanoposto",100) local patrolTime = setTimer( function() for i, postosdestruir in ipairs(getElementsByType("colshape")) do if getElementDa
  7. Hello, I need some help here! I'm making a new gamemode for a server, but there is an error that's appearing and it's making ' Network Trouble ', it's like a infinite error! This is what appears at console: logs.txt [2016-11-17 13:06:50] WARNING: Long execution (rustgamemode) [2016-11-17 13:06:51] WARNING: [rust]\rustgamemode\vehicles_System.lua:120: Bad argument @ 'setElementData' [Expected element at argument 1, got nil] [2016-11-17 13:06:51] WARNING: [rust]\rustgamemode\vehicles_System.lua:121: Bad argument @ 'setElementData' [Expected element at argument 1, got nil] and th
×
×
  • Create New...