-
Posts
1,411 -
Joined
-
Last visited
-
Days Won
2
Everything posted by WASSIm.
-
i am making that script you want clear car mod ?
-
function isPlayerPhoneIcon ( thePlayer ) if ( isElement( thePlayer ) ) then if ( getElementData(thePlayer, "PhoneIcon" ) ) then return true else return false end else return false end end function isPlayerHQHudVisible ( thePlayer ) if ( isElement( thePlayer ) ) then if ( getElementData(thePlayer, "ammo" ) ) then return true else return false end else return false end end function isPlayerHQHudVisible ( thePlayer ) if ( isElement( thePlayer ) ) then if ( getElementData(thePlayer, "armour" ) ) then return true else return false end else return false end end function isPlayerHQHudVisible ( thePlayer ) if ( isElement( thePlayer ) ) then if ( getElementData(thePlayer, "clock" ) ) then return true else return false end else return false end end function isPlayerHQHudVisible ( thePlayer ) if ( isElement( thePlayer ) ) then if ( getElementData(thePlayer, "health" ) ) then return true else return false end else return false end end function isPlayerHQHudVisible ( thePlayer ) if ( isElement( thePlayer ) ) then if ( getElementData(thePlayer, "money" ) ) then return true else return false end else return false end end function isPlayerHQHudVisible ( thePlayer ) if ( isElement( thePlayer ) ) then if ( getElementData(thePlayer, "weapon" ) ) then return true else return false end else return false end end function isPlayerHQHudVisible ( thePlayer ) if ( isElement( thePlayer ) ) then if ( getElementData(thePlayer, "wanted" ) ) then return true else return false end else return false end end function isPlayerHQHudVisible ( thePlayer ) if ( isElement( thePlayer ) ) then if ( getElementData(thePlayer, "day" ) ) then return true else return false end else return false end end function setPlayerPhoneIcon ( thePlayer, stats) if ( isElement( thePlayer ) ) then setElementData(thePlayer, "PhoneIcon", stats ) else return false end end function setPlayerHQHudVisible ( thePlayer, stats) if ( isElement( thePlayer ) ) then setElementData(thePlayer, "ammo", stats ) else return false end end function setPlayerHQHudVisible ( thePlayer, stats) if ( isElement( thePlayer ) ) then setElementData(thePlayer, "armour", stats ) else return false end end function setPlayerHQHudVisible ( thePlayer, stats) if ( isElement( thePlayer ) ) then setElementData(thePlayer, "clock", stats ) else return false end end function setPlayerHQHudVisible ( thePlayer, stats) if ( isElement( thePlayer ) ) then setElementData(thePlayer, "health", stats ) else return false end end function setPlayerHQHudVisible ( thePlayer, stats) if ( isElement( thePlayer ) ) then setElementData(thePlayer, "money", stats ) else return false end end function setPlayerHQHudVisible ( thePlayer, stats) if ( isElement( thePlayer ) ) then setElementData(thePlayer, "weapon", stats ) else return false end end function setPlayerHQHudVisible ( thePlayer, stats) if ( isElement( thePlayer ) ) then setElementData(thePlayer, "wanted", stats ) else return false end end function setPlayerHQHudVisible ( thePlayer, stats) if ( isElement( thePlayer ) ) then setElementData(thePlayer, "day", stats ) else return false end end function setPlayerHQHudVisible ( thePlayer, stats) if ( isElement( thePlayer ) ) then setElementData(thePlayer, "all", stats ) setElementData(thePlayer, "ammo", stats ) setElementData(thePlayer, "armour", stats ) setElementData(thePlayer, "clock", stats ) setElementData(thePlayer, "health", stats ) setElementData(thePlayer, "money", stats ) setElementData(thePlayer, "weapon", stats ) setElementData(thePlayer, "wanted", stats ) setElementData(thePlayer, "day", stats ) else return false end end
-
nothing i think problem in isPlayerHQHudVisible
-
Serveur problem(Tunisian) :D
WASSIm. replied to Amine b's topic in Maghrebi Arabic / Darija / الدارجة
MTA testing ports ??? -
isPlayerHQHudVisible and setPlayerHQHudVisible is exports
-
its working before use isPlayerHQHudVisible i think problem with that
-
you post page.htm but he is .html
-
hi guys i have problem. hud not showing and no error local sx,sy = guiGetScreenSize ( ) local font1 = "sans" local font2 = "pricedown" local scale1 = 1.7 local scale2 = 1.7 enablePlayerWeapon = true enablePlayerAmmo = true enablePlayerHealth = true enablePlayerArmour = true enablePlayerClock = true enablePlayerMoney = true enablePlayerWanted = true enablePlayerDay = true function dxDrawBorderedText( text, x, y, w, h, color, black, scale1, font, alignX, alignY, clip, wordBreak, postGUI, colorCoded ) text_ = text:gsub ( "#%x%x%x%x%x%x", "" ) dxDrawText ( text_, x - black, y - black, w - black, h - black, tocolor ( 0, 0, 0, black55 ), scale1, font, alignX, alignY, clip, wordBreak, false, true ) dxDrawText ( text_, x + black, y - black, w + black, h - black, tocolor ( 0, 0, 0, black55 ), scale1, font, alignX, alignY, clip, wordBreak, false, true ) dxDrawText ( text_, x - black, y + black, w - black, h + black, tocolor ( 0, 0, 0, black55 ), scale1, font, alignX, alignY, clip, wordBreak, false, true ) dxDrawText ( text_, x + black, y + black, w + black, h + black, tocolor ( 0, 0, 0, black55 ), scale1, font, alignX, alignY, clip, wordBreak, false, true ) dxDrawText ( text_, x - black, y, w - black, h, tocolor ( 0, 0, 0, black55 ), scale1, font, alignX, alignY, clip, wordBreak, false, true ) dxDrawText ( text_, x + black, y, w + black, h, tocolor ( 0, 0, 0, black55 ), scale1, font, alignX, alignY, clip, wordBreak, false, true ) dxDrawText ( text_, x, y - black, w, h - black, tocolor ( 0, 0, 0, black55 ), scale1, font, alignX, alignY, clip, wordBreak, false, true ) dxDrawText ( text_, x, y + black, w, h + black, tocolor ( 0, 0, 0, black55 ), scale1, font, alignX, alignY, clip, wordBreak, false, true ) dxDrawText ( text, x, y, w, h, color, scale1, font, alignX, alignY, clip, wordBreak, postGUI, colorCoded ) end function hud( ) if not isPlayerMapVisible () then days = { [ 0 ] = 'Sunday', [ 1 ] = 'Monday', [ 2 ] = 'Tuesday', [ 3 ] = 'Wednesday', [ 4 ] = 'Thursday', [ 5 ] = 'Friday', [ 6 ] = 'Saturday', } noreloadweapons = {} noreloadweapons[16] = true noreloadweapons[17] = true noreloadweapons[18] = true noreloadweapons[19] = true noreloadweapons[25] = true noreloadweapons[33] = true noreloadweapons[34] = true noreloadweapons[35] = true noreloadweapons[36] = true noreloadweapons[37] = true noreloadweapons[39] = true noreloadweapons[41] = true noreloadweapons[43] = true meleespecialweapons = {} meleespecialweapons[0] = true meleespecialweapons[1] = true meleespecialweapons[2] = true meleespecialweapons[3] = true meleespecialweapons[4] = true meleespecialweapons[5] = true meleespecialweapons[6] = true meleespecialweapons[7] = true meleespecialweapons[8] = true meleespecialweapons[9] = true meleespecialweapons[10] = true meleespecialweapons[11] = true meleespecialweapons[12] = true meleespecialweapons[13] = true meleespecialweapons[14] = true meleespecialweapons[15] = true meleespecialweapons[40] = true meleespecialweapons[44] = true meleespecialweapons[45] = true meleespecialweapons[46] = true playerWeapon = getPedWeapon ( localPlayer ) playerAmmo = getPedTotalAmmo ( localPlayer ) playerAmmo2 = getPedTotalAmmo( localPlayer )-getPedAmmoInClip( localPlayer ) playerAmmoc = getPedAmmoInClip ( localPlayer ) playerHealth = getElementHealth ( localPlayer ) playerArmor = getPedArmor ( localPlayer ) hour, mins = getTime ( localPlayer ) money = getPlayerMoney ( localPlayer ) wanted = getPlayerWantedLevel ( localPlayer ) stat = getPedStat ( localPlayer, 24 ) day = (days [getRealTime().weekday] ) showammo1 = playerAmmoc showammo2 = playerAmmo showammo3 = playerAmmo2 currenthealth = math.floor(playerHealth) currentarmor = math.floor(playerArmor) time = hour .. " : " .. (((mins < 10) and "0"..mins) or mins) if ( enablePlayerWeapon ) then wpx5, wpy5, wpx6, wpy6 = sx*(1115.0/1440),sy*(40.0/900),sx*(110.0/1440),sy*(115.0/900) end if ( enablePlayerAmmo ) then amx1, amy1, amx2, amy2 = sx*(1440.0/1440),sy*(128.0/900),sx*(910.0/1440),sy*(27.0/900) end if ( enablePlayerHealth ) then if (stat > 573 ) then hx1, hy1, hx2, hy2 = sx*(1440.0/1440),sy*(150.0/900),sx*(1370.0/1440),sy*(27.0/900) else hx1, hy1, hx2, hy2 = sx*(1440.0/1440),sy*(130.0/900),sx*(1370.0/1440),sy*(27.0/900) end end if ( enablePlayerArmour ) then if (stat > 573 ) then ax1, ay1, ax2, ay2 = sx*(1440.0/1440),sy*(92.0/900),sx*(1370.0/1440),sy*(27.0/900) else ax1, ay1, ax2, ay2 = sx*(1440.0/1440),sy*(88.0/900),sx*(1370.0/1440),sy*(27.0/900) end end if ( enablePlayerClock ) then tx1, ty1, tx2, ty2 = sx*(1440.0/1440),sy*(40.0/900),sx*(1165.0/1440),sy*(27.0/900) end if ( enablePlayerMoney ) then if (stat > 573 ) then mx1, my1, mx2, my2 = sx*(1440.0/1440),sy*(175.0/900),sx*(1366.0/1440),sy*(27.0/900) else mx1, my1, mx2, my2 = sx*(1440.0/1440),sy*(151.0/900),sx*(1366.0/1440),sy*(27.0/900) end end if ( enablePlayerWanted ) then wx1, wy1, wx2, wy2 = sx*(1440.0/1440),sy*(151.0/900),sx*(1166.0/1440),sy*(27.0/900) end if ( enablePlayerDay ) then dx1, dy1, dx2, dy2 = sx*(1440.0/1440),sy*(0.0/900),sx*(1165.0/1440),sy*(27.0/900) end if ( isPlayerHQHudVisible ( localplayer,Weapon ) ) then wpx5, wpy5, wpx6, wpy6 = sx*(1115.0/1440),sy*(40.0/900),sx*(110.0/1440),sy*(115.0/900) end if ( isPlayerHQHudVisible ( localplayer,Ammo ) ) then amx1, amy1, amx2, amy2 = sx*(1440.0/1440),sy*(128.0/900),sx*(910.0/1440),sy*(27.0/900) end if ( isPlayerHQHudVisible ( localplayer,Health ) ) then if (stat > 573 ) then hx1, hy1, hx2, hy2 = sx*(1440.0/1440),sy*(150.0/900),sx*(1370.0/1440),sy*(27.0/900) else hx1, hy1, hx2, hy2 = sx*(1440.0/1440),sy*(130.0/900),sx*(1370.0/1440),sy*(27.0/900) end end if ( isPlayerHQHudVisible ( localplayer,Armour ) ) then if (stat > 573 ) then ax1, ay1, ax2, ay2 = sx*(1440.0/1440),sy*(92.0/900),sx*(1370.0/1440),sy*(27.0/900) else ax1, ay1, ax2, ay2 = sx*(1440.0/1440),sy*(88.0/900),sx*(1370.0/1440),sy*(27.0/900) end end if ( isPlayerHQHudVisible ( localplayer,Clock ) ) then tx1, ty1, tx2, ty2 = sx*(1440.0/1440),sy*(40.0/900),sx*(1165.0/1440),sy*(27.0/900) end if ( isPlayerHQHudVisible ( localplayer,Money ) ) then if (stat > 573 ) then mx1, my1, mx2, my2 = sx*(1440.0/1440),sy*(175.0/900),sx*(1366.0/1440),sy*(27.0/900) else mx1, my1, mx2, my2 = sx*(1440.0/1440),sy*(151.0/900),sx*(1366.0/1440),sy*(27.0/900) end end if ( isPlayerHQHudVisible ( localplayer,Wanted ) ) then wx1, wy1, wx2, wy2 = sx*(1440.0/1440),sy*(151.0/900),sx*(1166.0/1440),sy*(27.0/900) end if ( isPlayerHQHudVisible ( localplayer,Day ) ) then dx1, dy1, dx2, dy2 = sx*(1440.0/1440),sy*(0.0/900),sx*(1165.0/1440),sy*(27.0/900) end if ( isPlayerHQHudVisible ( localplayer,Weapon ) ) then if playerWeapon and doesPedHaveJetPack (localPlayer) then dxDrawImage(wpx5-60, wpy5+30, wpx6/2, wpy6/2,"images/weapon/"..tostring(playerWeapon)..".png",0.0,0.0,0.0,tocolor(255,255,255,255),false) dxDrawImage(wpx5, wpy5, wpx6, wpy6,"images/weapon/JP.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif not playerWeapon and doesPedHaveJetPack (localPlayer) then dxDrawImage(wpx5, wpy5, wpx6, wpy6,"images/weapon/JP.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif isPlayerPhoneIcon ( localPlayer ) then dxDrawImage(wpx5, wpy5, wpx6, wpy6,"images/weapon/PH.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif playerWeapon then dxDrawImage(wpx5, wpy5, wpx6, wpy6,"images/weapon/"..tostring (playerWeapon)..".png",0.0,0.0,0.0,tocolor(255,255,255,255),false) end end if ( isPlayerHQHudVisible ( localplayer,Ammo) ) then if (meleespecialweapons [playerWeapon]) or doesPedHaveJetPack (localPlayer) or isPlayerPhoneIcon ( localPlayer ) then --nothing elseif (noreloadweapons [playerWeapon]) then dxDrawBorderedText(""..tostring(showammo2).."",amx1, amy1, amx2, amy2,tocolor (180,200,240,255),2,scale1,font1,"center","top",false,false,false) elseif (not noreloadweapons [playerWeapon]) then dxDrawBorderedText(""..tostring(showammo3).."-"..tostring(showammo1).."",amx1, amy1, amx2-5, amy2,tocolor(180,200,240,255),2,scale1,font1,"center","top",false,false,false,false) end end if ( isPlayerHQHudVisible ( localplayer,Health ) ) then dxDrawBorderedText(""..tostring(currenthealth).."%",hx1, hy1, hx2, hy2,tocolor (180,25,29,255),2,scale1,font1,"center","top",false,false,false) end if ( isPlayerHQHudVisible ( localplayer,Armour ) ) then if (playerArmor > 1) then dxDrawBorderedText(""..tostring(currentarmor).."%",ax1, ay1, ax2, ay2,tocolor (225,225,225,255),2,scale1,font1,"center","top",false,false,false) end end if ( isPlayerHQHudVisible ( localplayer,Day ) ) then dxDrawBorderedText
-
Serveur problem(Tunisian) :D
WASSIm. replied to Amine b's topic in Maghrebi Arabic / Darija / الدارجة
i9olek error mta3 ressource ? warpPedIntoVehicle -
https://community.multitheftauto.com/in ... ils&id=202
-
-HI ALL- This script change HUD Hight Quality Icons: http://www.gtagarage.com/mods/show.php?id=18074 INFO: -Weapon Icon -JetPack Icon -Phone Icon export -Ammo -Health % -Armour % -Money -Wanted Level -Time -Real Day EXPORT: -exports.hqhud:setPlayerPhoneIcon ( thePlayer, (true or false) ) -exports.hqhud:isPlayerPhoneIcon ( thePlayer ) and can edit scale and font in setting client.lua If player have JetPack If player have Phone Please Vote and Rate 5 and Comment for some Bug DOWNLOAD
-
hi guys i have problem its show me (nil) addEventHandler("onClientRender",root, function ( ) days = { [ '0' ] = 'SUN', [ '1' ] = 'MON', [ '2' ] = 'TUE', [ '3' ] = 'WED', [ '4' ] = 'THU', [ '5' ] = 'FRI', [ '6' ] = 'SAT', } day = days [getRealTime().weekday] dxDrawBorderedText(""..tostring(day).."",dx1, dy1, dx2,dy2,tocolor(195,195,195,255),5,scale2,font2,"center","top",false,false,false) end end )
-
fama 7aja hablatni il script ma5damlich 3andi wa 5dam 3andek --setting local sx,sy = guiGetScreenSize ( ) --screen dont change local sx1, sy1, sx2, sy2 = sx*(27.0/1440),sy*(655.0/900),sx*(27.0/1440),sy*(232.0/900) --post local r, g, b = math.random(0, 255), math.random(0, 255), math.random(0, 255) --color local scale = 2.15 --scale local font = "pricedown" --font addEventHandler("onClientRender",root, function () if (getPedOccupiedVehicle(localPlayer)) then for i=0,5 do local doorState = getVehicleDoorState(getPedOccupiedVehicle(localPlayer), i) if doorState == 2 or doorState == 3 or doorState == 4 or doorState == 5 then dxDrawText("Door is open",sx1, sy1, sx2, sy2,tocolor(r, g, b,255),scale,font,"left","top",false,false,false) playSound("sound.mp3" ,true) end end end end )
-
omorek 6/zit --setting local sx,sy = guiGetScreenSize ( ) --screen dont change local sx1, sy1, sx2, sy2 = sx*(250.0/1440),sy*(655.0/900),sx*(27.0/1440),sy*(232.0/900) --post local r, g, b = math.random(0, 255), math.random(0, 255), math.random(0, 255) --color local scale = 2.15 --scale local font = "pricedown" --font addEventHandler("onClientRender",root, function () if (getPedOccupiedVehicle(localPlayer)) then for i=0,5 do local doorState = getVehicleDoorState(getPedOccupiedVehicle(localPlayer), i) if doorState == 2 or doorState == 3 or doorState == 4 or doorState == 5 then dxDrawText("Door is open",sx1, sy1, sx2, sy2,tocolor(r, g, b,255),scale,font,"right","top",false,false,false) playSound("sound.mp3" ,false) end end end end )
-
*اهلا وسهلا للجميع* جبتلكم سكريبت يجعل جميع سيارات شرطة عربية Version 1 Version 1.1 *تحميل*
-
7otli badhabt chnawa 9alolik
-
addEventHandler("onClientRender",root, function doesVehicleHaveDoorOpen( ) if (getPedOccupiedVehicle(source)) then local doorState = getVehicleDoorState(getPedOccupiedVehicle(source)) if doorState == 2 or doorState == 3 or doorState == 4 or doorState == 5 then playSound("sound.mp3") end end end )
-
addEventHandler("onClientRender",root, function doesVehicleHaveDoorOpen( ) if (getVehicleOccupant(source)) then local doorState = getVehicleDoorState(getVehicleOccupant(source)) if doorState == 2 or doorState == 3 or doorState == 4 or doorState == 5 then playSound("sound.mp3") end end end )
-
function hudvehicle ( ) theVehicle = getPedOccupiedVehicle ( localPlayer ) if ( theVehicle ) then spx, spy, spz = getElementVelocity( theVehicle ) mphSpeed = ( spx^2 + spy^2 + spz^2 ) ^ 0.5 * 100 kphSpeed = ( spx^2 + spy^2 + spz^2 ) ^ 0.5 * 1.61 * 100 vehiclespeed = mphSpeed vehicleHealth = getElementHealth ( theVehicle ) vehiclename = getVehicleName ( theVehicle ) radio = getRadioChannel ( theVehicle ) NitroLevel = getVehicleNitroLevel( theVehicle ) if ( enableVehicleHealth ) then hvx1, hvy1, hvx2, hvy2 = sx*(355.0/1440),sy*(859.0/900),sx*(121.0/1440),sy*(27.0/900) hvx3, hvy3, hvx4, hvy4 = sx*(360.0/1440),sy*(863.0/900),vehicleHealth/10*sx*(112.0/1440)/100,sy*(19.0/900) hvx5, hvy5, hvx6, hvy6 = sx*(360.0/1440),sy*(863.0/900),sx*(112.0/1440),sy*(19.0/900) end if ( enableSpeedMeter ) then sx1, sy1, sx2, sy2 = sx*(355.0/1440),sy*(809.0/900),sx*(121.0/1440),sy*(27.0/900) sx3, sy3, sx4, sy4 = sx*(360.0/1440),sy*(813.0/900),vehiclespeed/1.5*sx*(112.0/1440)/100,sy*(19.0/900) sx5, sy5, sx6, sy6 = sx*(360.0/1440),sy*(813.0/900),sx*(112.0/1440),sy*(19.0/900) end if ( enableNitro ) and ( getVehicleUpgradeOnSlot ( theVehicle, 8 ) ~= 0 ) then nx1, ny1, nx2, ny2 = sx*(355.0/1440),sy*(759.0/900),sx*(27.0/1440),sy*(116.0/900) nx3, ny3, nx4, ny4 = sx*(360.0/1440),sy*(871.0/900),sx*(18.0/1440),NitroLevel*sy*(-108.0/900) nx5, ny5, nx6, ny6 = sx*(360.0/1440),sy*(763.0/900),sx*(18.0/1440),sy*(108.0/900) end if ( enableVehicleName ) then vnx1, vny1, vnx2, vny2 = sx*(1260.0/1440),sy*(740.0/900),sx*(1360.0/1440),sy*(27.0/900) end if ( enableVehicleRadio ) then rx5, ry5, rx6, ry6 = sx*(660.0/1440),sy*(30.0/900),sx*(128.0/1440),sy*(128.0/900) end if ( enableVehicleLock ) then lx5, ly5, lx6, ly6 = sx*(1208.0/1440),sy*(835.0/900),sx*(19.0/1440),sy*(19.0/900) end if ( enableVehicleHealth ) then dxDrawRectangle (hvx5, hvy5, hvx6, hvy6,tocolor(0,0,0,170),false) dxDrawRectangle(hvx1, hvy1, hvx2, hvy2,tocolor(0,0,0,150),false) dxDrawRectangle (hvx3, hvy3, hvx4, hvy4,tocolor(90,125,90,170),false) end if ( enableSpeedMeter ) then dxDrawRectangle (sx5, sy5, sx6, sy6,tocolor(0,0,0,170),false) dxDrawRectangle(sx1, sy1, sx2, sy2,tocolor(0,0,0,150),false) dxDrawRectangle (sx3, sy3, sx4, sy4,tocolor(90,125,90,170),false) end if ( enableNitro ) then dxDrawRectangle(nx1, ny1, nx2, ny2,tocolor(0,0,0,150),false) dxDrawRectangle (nx5, ny5, nx6, ny6,tocolor(0,0,0,170),false) dxDrawRectangle (nx3, ny3, nx4, ny4,tocolor(255,0,0,170),false) end if ( enableVehicleName ) then if ( exports.setting:isPlayerOnGroupIV ( source ) ) then dxDrawBorderedText(""..tostring(vehiclename).."",vnx1, vny1, vnx2, vny2,tocolor(100,100,100,255),scale,font1,"right","top",false,false,false) elseif ( exports.setting:isPlayerOnGroupTBOGT ( source ) ) then dxDrawBorderedText(""..tostring(vehiclename).."",vnx1, vny1, vnx2, vny2,tocolor(80,100,140,255),scale,font1,"right","top",false,false,false) elseif ( exports.setting:isPlayerOnGroupTLAD ( source ) ) then dxDrawBorderedText(""..tostring(vehiclename).."",vnx1, vny1, vnx2, vny2,tocolor(100,100,100,255),scale,font1,"right","top",false,false,false) end end if ( enableVehicleRadio ) then dxDrawImage(rx5, ry5, rx6, ry6,"images/radio/"..tostring(radio)..".png",0.0,0.0,0.0,tocolor(220,220,220,255),false) end if ( enableVehicleLock ) then if ( isVehicleLocked( theVehicle ) ) then dxDrawImage(lx5, ly5, lx6, ly6,"images/lock.png",0.0,0.0,0.0,tocolor(170,0,0,255),false) else dxDrawImage(lx5, ly5, lx6, ly6,"images/lock.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) end end end end
-
its working but if car dont have nitro make flood in debugscript
-
: / :385: Bad argument @ 'dxDrawRectangle' [Expected n6mber at argument 1, got nil] :386: Bad argument @ 'dxDrawRectangle' [Expected number at argument 1, got nil] :387: Bad argument @ 'dxDrawRectangle' [Expected number at argument 1, got nil] dxDrawRectangle(nx1, ny1, nx2, ny2,tocolor(0,0,0,150),false) dxDrawRectangle (nx5, ny5, nx6, ny6,tocolor(0,0,0,170),false) dxDrawRectangle (nx3, ny3, nx4, ny4,tocolor(255,0,0,170),false)