Jump to content

WASSIm.

Members
  • Posts

    1,411
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by WASSIm.

  1. WASSIm.

    help gate

    >="server.lua" type="server" />="gates.lua" type="server" />>
  2. WASSIm.

    help gate

    2: attempt to call global 'getGatesTable' (a nil value)
  3. WASSIm.

    help gate

    where ? sry but i don't understand the tables
  4. WASSIm.

    help gate

    local getTable = { {2990, 1284.2, -2056.4, 61.7, 0, 0, 90, 1284.2, -2056.4, 61.7, 2000, 10, "N..S.E", "N..S.E"}, function getGatesTable () return getTable end
  5. WASSIm.

    help gate

    hi guys i have problem
  6. WASSIm.

    hep gui

    thank you BUT NOW I FIXED IT
  7. WASSIm.

    hep gui

    thx so much and i have problem two button (button1) not working
  8. WASSIm.

    hep gui

    hi guys. i have problem to row if click button exm (buttonMan) and after click click button exm (buttonWoman) is add i want change dont add : / local marker = createMarker( 773.5, -0, 999.7, 'Cylinder', 1.5, 100, 255, 100, 170 ) setElementInterior(marker, 5) Wnd = guiCreateWindow ( 0.2, 0.2, 0.50, 0.50, "Walking Style", true ) button = guiCreateButton ( 0.83, 0.06, 0.15, 0.05, "Close", true, Wnd ) button1 = guiCreateButton ( 0.83, 0.12, 0.15, 0.05, "Accepted", true, Wnd ) buttonDefault = guiCreateButton ( 0.83, 0.20, 0.15, 0.05, "Default", true, Wnd ) buttonMan = guiCreateButton ( 0.83, 0.26, 0.15, 0.05, "Man", true, Wnd ) buttonWoman = guiCreateButton ( 0.83, 0.32, 0.15, 0.05, "Woman", true, Wnd ) buttonOther = guiCreateButton ( 0.83, 0.38, 0.15, 0.05, "Other", true, Wnd ) wstyleG = guiCreateGridList(0.03, 0.06, 0.79, 0.50, true, Wnd) guiGridListAddColumn(wstyleG, "Walking Style", 0.25) guiCreateLabel ( 0.05, 0.9, 0.5, 0.2, "By WASSIm.", true, Wnd ) showCursor(false) guiSetVisible( Wnd, false ) guiWindowSetSizable( Wnd, false ) guiWindowSetMovable( Wnd, false ) Default = { {"DEFAULT", 0}, {"Normal", 54}, {"Fat", 55}, {"Muscle", 56}, } Man = { {"Man", 118}, {"Fat Man", 124}, {"Jogger Man", 125}, {"Old Man", 120}, {"Old Fat Man", 123}, } Woman = { {"Woman", 129}, {"Busy Woman", 131}, {"Sexy Woman", 132}, {"Pro Sexy Woman", 133}, {"Fat Woman", 135}, {"Jogger Woman", 136}, {"Old Woman", 134}, {"Old Fat Woman", 137}, } Other = { {"Swat", 128}, {"Gang 1", 121}, {"Gang 2", 122}, {"drinking", 126}, {"Shuffle", 119}, {"Sneak", 69}, {"Blind", 127}, } function list() if (source == buttonDefault) then for i,Default in ipairs(Default) do local row = guiGridListAddRow(wstyleG) guiGridListSetItemText(wstyleG, row, 1, tostring(Default[1]), false, false) guiGridListSetItemData(wstyleG, row, 1, tostring(Default[2])) guiSetEnabled ( buttonDefault, false ) guiSetEnabled ( buttonMan, true ) guiSetEnabled ( buttonWoman, true ) guiSetEnabled ( buttonOther, true ) end elseif (source == buttonMan) then for i,Man in ipairs(Man) do local row = guiGridListAddRow(wstyleG) guiGridListSetItemText(wstyleG, row, 1, tostring(Man[1]), false, false) guiGridListSetItemData(wstyleG, row, 1, tostring(Man[2])) guiSetEnabled ( buttonDefault, true ) guiSetEnabled ( buttonMan, false ) guiSetEnabled ( buttonWoman, true ) guiSetEnabled ( buttonOther, true ) end elseif (source == buttonWoman) then for i,Woman in ipairs(Woman) do local row = guiGridListAddRow(wstyleG) guiGridListSetItemText(wstyleG, row, 1, tostring(Woman[1]), false, false) guiGridListSetItemData(wstyleG, row, 1, tostring(Woman[2])) guiSetEnabled ( buttonDefault, true ) guiSetEnabled ( buttonMan, true ) guiSetEnabled ( buttonWoman, false ) guiSetEnabled ( buttonOther, true ) end elseif (source == buttonOther) then for i,Other in ipairs(Other) do local row = guiGridListAddRow(wstyleG) guiGridListSetItemText(wstyleG, row, 1, tostring(Other[1]), false, false) guiGridListSetItemData(wstyleG, row, 1, tostring(Other[2])) guiSetEnabled ( buttonDefault, true ) guiSetEnabled ( buttonMan, true ) guiSetEnabled ( buttonWoman, true ) guiSetEnabled ( buttonOther, false ) end end end function markerhit(hitElement) if getElementType(hitElement) == "player" and (hitElement == localPlayer) then if not guiGetVisible(Wnd) then guiSetVisible(Wnd, true) showCursor(true) end end end function select() if (source == button1) then local row, col = guiGridListGetSelectedItem(wstyleG) if (row and col and row ~= -1 and col ~= -1) then local models = tonumber(guiGridListGetItemData(wstyleG, row, 1)) if model ~= "" then triggerServerEvent("walking", localPlayer, models) guiSetVisible(Wnd,false) showCursor(false) end end end end function close() if (source == button) then guiSetVisible(Wnd,false) showCursor(false) end end addEventHandler("onClientGUIClick", root, list) addEventHandler("onClientGUIClick", root, close) addEventHandler("onClientGUIClick", root, select, false) addEventHandler("onClientMarkerHit", marker, markerhit)
  9. WASSIm.

    small help

    no but is just create marker EVERYTIME i think problem to < >
  10. WASSIm.

    small help

    is already local h, m = getTime()
  11. WASSIm.

    small help

    NO. i want if hour of 20 to 7 createobject and if hour of 7 to 20 createmarker
  12. WASSIm.

    small help

    hi guys i want if of 20 to 7 hour create object and if not. create marker if (h > 7) and (h < 20) then local marker = createObject(3877,tonumber(getElementData(groundweapon, "posX")), tonumber(getElementData(groundweapon, "posY")), tonumber(getElementData(groundweapon, "posZ"))-1) setElementCollisionsEnabled(marker,false) setElementAlpha(marker,0) setElementInterior(marker, tonumber(getElementData(groundweapon, "interior"))) setElementDimension(marker, tonumber(getElementData(groundweapon, "dimension"))) setElementData(temp, "colshape.marker", marker) else local marker = createMarker(tonumber(getElementData(groundweapon, "posX")), tonumber(getElementData(groundweapon, "posY")), tonumber(getElementData(groundweapon, "posZ"))+0.05, "corona", 0.5, weaponmarkercolors[slot][1],weaponmarkercolors[slot][2], weaponmarkercolors[slot][3], 80) setElementInterior(marker, tonumber(getElementData(groundweapon, "interior"))) setElementDimension(marker, tonumber(getElementData(groundweapon, "dimension"))) setElementData(temp, "colshape.marker", marker) end
  13. https://community.multitheftauto.com/
  14. WASSIm.

    help mysql

    you know other site free host ?
  15. WASSIm.

    help mysql

    hi all. console show me this dbConnect failed; Can't connect to MySQL server on 'mysql8.000webhost.com' (10060) -- Connection functions local connection = nil local function connect( ) connection = dbConnect( "mysql", "dbname=a5714069_server;host=mysql8.000webhost.com", "a5714069_server", "aaaaaa1", "share=1" ) if connection then outputConsole ( "Server is now connected with the MySQL database!", 1 ) return true else outputConsole ( "Connection with the MySQL database failed!", 1 ) return false end end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), connect ) -- Exported functions function query( ... ) if connection then local qh = dbQuery( connection, ... ) local result = dbPoll( qh, -1 ) return result else return false end end -- Get a single row from the database function querySingle( str, ... ) if connection then local result = query( str, ... ) if type(result) == 'table' then return result[1] end return result else return false end end -- DB exec as used function exec( str, ... ) if connection then local qh = dbExec( connection, str, ... ) return qh else return false end end
  16. addEventHandler("onClientPlayerWeaponFire", root, function (weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) if (weapon) and (getElementType(hitElement)=="player") then playSound3D("sounds/song.mp3", hitX, hitY, hitZ, true) end end )
  17. WASSIm.

    helppp!!!

    OK. thanks all very much
×
×
  • Create New...