enzoDs

Members
  • Content Count

    31
  • Joined

  • Last visited

Community Reputation

1 Neutral

1 Follower

About enzoDs

  • Rank
    Rat
  • Birthday 19/12/1991

Details

  • Gang
    #Caliper
  • Location
    Mar Del Plata

Recent Profile Visitors

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

  1. enzoDs

    Clear table

    Im stupid 😅🤣😂 Thank you bro!
  2. enzoDs

    Clear table

    tabla = {} function iniciar () for _, object in ipairs(aclGroupListObjects(aclGetGroup( "RSPD" )) or {}) do nombre = object:gsub("user.","") table.insert( tabla, nombre..", "..getJugadorPermiso(getAccount(nombre))..", "..getJugadorPuesto(getAccount(nombre))..", "..getJugadorSueldo(getAccount(nombre))) end return tabla end I need clear the table to so that every time the function is executed, no added elements are added (google translate english xd)
  3. enzoDs

    Clear table

    i need clear table, thanks
  4. enzoDs

    Simple help :D

    Hello, i need convert a string to 3 variables x,y,z = "15,20,18" -----------> x = 15 y = 20 z = 18 Thanks
  5. Hello, i deleted a object with removeWorldObject, but i can't delete de "other part" of the object ubicated down Normal: https://imgur.com/gGuwIgo With removeWorldObject: https://imgur.com/GPU4fpA I need empty it Thanks and sorry for the google translate
  6. WARNING: Empresas/client.Lua:71: Bad argument @ "outputChatBox" [Expected string ar argument 1, got none] I solve it, thanks!
  7. function crearEmpresa ( stringNombre, stringEmpresa ) aclCreateGroup ( tostring((stringEmpresa):gsub(" ", "-")) ) aclGroupAddObject ( aclGetGroup(tostring((stringEmpresa):gsub(" ", "-"))), "user."..getAccountName(getPlayerAccount(getPlayerFromName(stringNombre)) )) setAccountData ( getPlayerAccount(getPlayerFromName(stringNombre)), "Empresa", tostring((stringEmpresa):gsub(" ", "-")) ) outputChatBox("(( EMPRESAS: "..stringNombre.." creo un empresa llamada "..stringEmpresa.." ))") addAccount ( tostring((stringEmpresa):gsub(" ", "-")), "*******" ) a = setAccountData ( getAccount(tostring((stringEmpresa):gsub(" ", "-"))), "Puestos", toJSON(defaultPuestos) ) outputChatBox(tostring(stringTabla)) end addEvent( "crearEmpresa", true ) addEventHandler( "crearEmpresa", resourceRoot, crearEmpresa ) --outputChatBox(tostring(("Hola XD"):gsub(" ", "-"))) function TablaEmpresa (jugador) empresajugador = getAccountData(getPlayerAccount(getPlayerFromName(jugador)), "Empresa") tabla = aclGroupListObjects(aclGetGroup(empresajugador)) dataPuestos = getAccountData ( getAccount(tostring((empresajugador):gsub(" ", "-"))), "Puestos" ) outputChatBox(dataPuestos) triggerClientEvent ( getPlayerFromName(jugador), "onPanelAbierto", getPlayerFromName(jugador), tabla,dataPuestos ) end addEvent( "onPanelAbierto", true ) addEventHandler( "onPanelAbierto", resourceRoot, TablaEmpresa ) function llenarGrid (tablaEmpleados,dataPuesto) dataPuestos = fromJSON(dataPuesto) DGS:dgsGridListClear( Egrid ) outputChatBox(unpack(dataPuestos,1)) for objects,name in pairs(tablaEmpleados)do local row = DGS:dgsGridListAddRow ( Egrid ) DGS:dgsGridListSetItemText ( Egrid, row, 1, tostring((name):gsub("user.", ""))) end end addEvent( "onPanelAbierto", true ) addEventHandler( "onPanelAbierto", localPlayer, llenarGrid ) [21:13:55] WARNING: Empresas\server.Lua:71: Bad argument @ 'toJSON' [Expected bool at argument 2, got string 'none'] 😧 i cant unpack the table
  8. defaultPuestos = { [1] = "Jefe", [2] = "Jefe", [3] = "500", [4] = "Lider", [5] = "Lider", [6] = "400", [7] = "Empleado", [8] = "Empleado", [9] = "107", [10] = "7", [11] = "Empleado", [12] = "106", [13] = "6", [14] = "Empleado", [15] = "105", [16] = "5", [17] = "Empleado", [18] = "104", [19] = "4", [20] = "Empleado", [21] = "103", [22] = "3", [23] = "Empleado", [24] = "102", [25] = "2", [26] = "Empleado", [27] = "101", [28] = "1", [29] = "Empleado", [30] = "100", } stringTable = toJson(defaultPuestos ) defautPuestos2 = fromJson(stringTable) In this case defautPuestos2 would be a table value?
  9. Hello i need convert string to table and table to string! Thanks With de toJson o other metod
  10. How to set debugscript in console to 0?
  11. I need the gsub format to filter color codes, Thanks!
  12. enzoDs

    Simple help :D

    Hello, i need transform R,G,B color to alphanumeric code (EX: 255,255,255 to #FFFFFF) with a function Thanks :D!