- 
                Posts216
- 
                Joined
- 
                Last visited
Everything posted by Gallagher
- 
	which the error original works ↓↓ local headline = {} local gridlistItems = {} local buttonItems = {} Inventario = {} inventoryWindows = guiCreateWindow(0.15, 0.28, 0.72, 0.63, "", true) -- [iD:0000014 - Remodel Inventory] //L -- inventoryWindows = guiCreateStaticImage(0.25,0.25,0.5,0.5,"images/scrollmenu_1.png",true) -- [iD:0000014 - Remodel Inventory] //L headline["loot"] = guiCreateLabel(0.06, 0.05, 0.34, 0.09,"GEAR",true,inventoryWindows) guiLabelSetHorizontalAlign (headline["loot"],"center") guiSetFont (headline["loot"], "default-bold-small" ) headline["inventory"] = guiCreateLabel(0.60, 0.05, 0.34, 0.09,"INVENTORY",true,inventoryWindows) guiLabelSetHorizontalAlign (headline["inventory"],"center") guiSetFont (headline["inventory"], "default-bold-small" ) Inventario[1] = guiCreateStaticImage(0.01, 0.03, 1.99, 100, "images/inventory.png",true,inventoryWindows) guiSetAlpha(Inventario[1],1) guiSetProperty(Inventario[1],"Disabled","true") gridlistItems["loot"] = guiCreateGridList (0.03, 0.10, 0.39, 0.83,true,inventoryWindows) gridlistItems["loot_colum"] = guiGridListAddColumn( gridlistItems["loot"], "Loot", 0.7 ) gridlistItems["loot_colum_amount"] = guiGridListAddColumn( gridlistItems["loot"], "", 0.2 ) gridlistItems["inventory"] = guiCreateGridList (0.57, 0.11, 0.39, 0.83,true,inventoryWindows) gridlistItems["inventory_colum"] = guiGridListAddColumn( gridlistItems["inventory"], "Inventory", 0.7 ) gridlistItems["inventory_colum_amount"] = guiGridListAddColumn( gridlistItems["inventory"], "", 0.2 ) buttonItems["loot"] = guiCreateButton(0.42, 0.17, 0.04, 0.69, "->", true,inventoryWindows) buttonItems["inventory"] = guiCreateButton(0.53, 0.17, 0.04, 0.69, "<-", true,inventoryWindows) headline["slots"] = guiCreateLabel(0.62, 0.94, 0.29, 0.04,"SLOTS:",true,inventoryWindows) guiLabelSetHorizontalAlign (headline["slots"],"center") guiLabelSetVerticalAlign (headline["slots"],"center") guiSetFont (headline["slots"], "default-bold-small" ) headline["slots_loot"] = guiCreateLabel(0.07, 0.94, 0.29, 0.04,"SLOTS:",true,inventoryWindows) guiLabelSetHorizontalAlign (headline["slots_loot"],"center") guiLabelSetVerticalAlign (headline["slots_loot"],"center") guiSetFont (headline["slots_loot"], "default-bold-small" ) guiSetVisible(inventoryWindows,false) function showInventory (key,keyState) if getElementData(getLocalPlayer(),"logedin") then if ( keyState == "down" ) then guiSetVisible(inventoryWindows,not guiGetVisible(inventoryWindows)) showCursor(not isCursorShowing()) refreshInventory() if guiGetVisible(inventoryWindows) == true then onClientOpenInventoryStopMenu () else hideRightClickInventoryMenu () end if isPlayerInLoot() then local col = getElementData(getLocalPlayer(),"currentCol") local gearName = getElementData(getLocalPlayer(),"lootname") refreshLoot(col,gearName) end end end end bindKey ( "j", "down", showInventory ) edited does not work↓↓ local headline = {} local gridlistItems = {} local buttonItems = {} local Inventario = {} inventoryWindows = guiCreateWindow(0.15, 0.28, 0.72, 0.63, "", true) headline.loot = guiCreateLabel(0.06, 0.05, 0.34, 0.09, "GEAR", true, inventoryWindows) guiLabelSetHorizontalAlign(headline.loot, "center") guiSetFont(headline.loot, "default-bold-small") headline.inventory = guiCreateLabel(0.6, 0.05, 0.34, 0.09, "INVENTÁRIO", true, inventoryWindows) guiLabelSetHorizontalAlign(headline.inventory, "center") guiSetFont(headline.inventory, "default-bold-small") if getElementData(getLocalPlayer(), "Pizza") < 1 then Inventario[1] = guiCreateStaticImage(0.01, 0.03, 1.99, 100, "images/pp.png",true,inventoryWindows) guiSetAlpha(Inventario[1],0.-- s8) --> guiSetProperty(Inventario[1],"Disabled","true") then else getElementData(getLocalPlayer(), "Pizza") == 1 then Inventario[2] = guiCreateStaticImage(0.01, 0.03, 1.99, 100, "images/p1.png",true,inventoryWindows) guiSetAlpha(Inventario[2],1) guiSetProperty(Inventario[2],"Disabled","true") else getElementData(getLocalPlayer(), "Pizza") == 2 then Inventario[3] = guiCreateStaticImage(0.01, 0.03, 1.99, 100, "images/p2.png",true,inventoryWindows) guiSetAlpha(Inventario[3],1) guiSetProperty(Inventario[3],"Disabled","true") function showInventory(key, keyState) if getElementData(getLocalPlayer(), "logedin") and keyState == "down" then guiSetVisible(inventoryWindows, not guiGetVisible(inventoryWindows)) showCursor(not isCursorShowing()) refreshInventory() if guiGetVisible(inventoryWindows) == true then onClientOpenInventoryStopMenu() else hideRightClickInventoryMenu() end if isPlayerInLoot() then local col = getElementData(getLocalPlayer(), "currentCol") local gearName = getElementData(getLocalPlayer(), "lootname") refreshLoot(col, gearName) end end end bindKey("j", "down", showInventory)
- 
	thanks
- 
	function weapons() triggerServerEvent ( "ClientHaveLevel", getLocalPlayer() ) --opens a panel end addEventHandler ( "onClientPlayerSpawn", getLocalPlayer(), weapons)--make the panel open when the player spawn then, I want the panel open after 15 seconds the player spawn
- 
	is possible someone stealing my map? When the player enters the server, it downloads the map? if possible someone rob me, as I have to protect my map?
- 
	  Algum modelador 3D na comunidade?Gallagher replied to Stanley Sathler's topic in Portuguese / Português cobain, you convert custom skins?
- 
	when I'm repairing my car, makes this animation, and animçao should stay until end car repair. function repairVehicle(veh) if repairTimer[veh] then triggerClientEvent(source, "displayClientInfo", source, "Vehicle", getVehicleName(veh) .. " is currently being repaired!", 255, 22, 0) return end local health = math.floor(getElementHealth(veh)) repairTimer[veh] = setTimer(fixVehicleDayZ, (1000 - health) * 120, 1, veh, source) setElementFrozen(veh, true) setElementData(veh, "repairer", source) setElementData(source, "repairingvehicle", veh) setPedAnimation(source, "SCRATCHING", "sclng_r", nil, true, false) triggerClientEvent(source, "displayClientInfo", source, "Vehicle", "You started to repair " .. getVehicleName(veh), 22, 255, 0) end addEvent("repairVehicle", true) addEventHandler("repairVehicle", getRootElement(), repairVehicle) function fixVehicleDayZ(veh, player) setElementHealth(veh, 1000) fixVehicle(veh) setPedAnimation(player, false) setElementFrozen(veh, false) repairTimer[veh] = nil setElementData(veh, "repairer", nil) setElementData(player, "repairingvehicle", nil) triggerClientEvent(player, "displayClientInfo", player, "Vehicle", "You finished repairing " .. getVehicleName(veh), 22, 255, 0) end But also have these animations, and if I press ", 'or'. 'The animation of the car repair is canceled. then as I lock animations when an already running? function funcBindSit ( player, key, keyState ) if siting then setPedAnimation (player,false) siting = false else if isPedInVehicle (player) then return end setPedAnimation (player,"SHOP","SHP_Rob_HandsUp",nil,true,true,false,false) siting = true end end -- NEW ANIMATION: PRONE function funcBindLie ( player, key, keyState ) if lying then setPedAnimation (player,false) lying = false else if isPedInVehicle (player) then return end setPedAnimation (player,"WUZI","CS_Dead_Guy",nil,true,false,false,true) lying = true function setVisibility() value = 0 end end end function bindTheKeys () bindKey(source,",","down",funcBindHandsup) bindKey(source,".","down",funcBindSit) bindKey(source,"l","down",funcBindLie) end English translator google
- 
	I want to make an animation for 20 seconds, and if I try to do another animation during those 20 seconds it will not work.
- 
	when I type /sc I have this animation setPedAnimation (source, "scratching", "sclng_r", nil, true, false) and if I type /ve got this setPedAnimation (source, "VENDING", "VEND_Drink2_P", nil, false, false, nil, false) . How can I make an animation to block when another is running? example: If I type / sc want the animation to run for 10 seconds and if I type / ve during animation / sc it not to run.
- 
	Hi ! WHAT I fix on line 1? error ↓ welcome.lua:1: attempt to call global 'guiGetScreenSize' (a nil value) local x,y,z = guiGetScreenSize() local alpha = 0 local fadeOut = true function showPlayerWelcomeMessage() addEventHandler( "onClientRender", root, showWelcomeMessage ) alpha = 0 fadeOut = true end function welcomeOnSpawn ( ) if source == localPlayer then showPlayerWelcomeMessage() end end addEventHandler ( "onClientPlayerSpawn", getLocalPlayer(), welcomeOnSpawn ) function showWelcomeMessage() local xOff = dxGetTextWidth ( 'San Andreas ', 1.2, 'bankgothic' ) local xp, yp, zp = getElementPosition () local mins, hour = getTime () if mins > 0 and mins < 10 then mins = '0'..tostring(mins) end local alivetime = getElementData(localPlayer, "alivetime") or 0 dxDrawText ( 'San Andreas\n'..getZoneName ( xp, yp, zp, true )..'\nВремя '..formatTimeFromMinutes(alivetime)..'\n'..tostring(mins)..':'..tostring(hour)..'', x-xOff, y-200, x,y, tocolor ( 255, 255, 255, alpha ), 1.2, 'bankgothic' ) if fadeIn then alpha = alpha-10 if alpha < 10 then fadeIn = false removeEventHandler( "onClientRender", root, showWelcomeMessage ) end end if fadeOut then alpha = alpha+5 if alpha > 245 then alpha = 255 setTimer ( function () fadeIn = true end, 3000, 1 ) fadeOut = false end end end
- 
	Can you give me an example?
- 
	but if cliente.lua is compiled has no way of knowing what the event
- 
	I want the client script to work if I have the server side also. because as my client-side script is a thief can get into my server and steal it even if it is compiled
- 
	I have this client-side script. I want to put a function or server-side event to qo script only works if the file server side "server.lua" ----Client ----- function createText1 ( ) clip = getPedAmmoInClip ( getLocalPlayer() ) arma = getPedWeapon( getLocalPlayer() ) dxDrawText(""..clip.." | "..bala,screenWidth*0.248, screenHeight*0.955, screenWidth*0.0, screenHeight*0.0, tocolor(230, 252, 250, 255), 0.45, "bankgothic", "left", "top", false, false, false, false, false) if ( arma==34 ) then dxDrawText(" DMR ",screenWidth*0.77, screenHeight*0.02012, screenWidth*0.0, screenHeight*0.0, tocolor(50, 200, 31, 255), 1, "bankgothic", "left", "top", false, false, false, false, false) elseif ( arma==31 ) then dxDrawText(" M4A1 ",screenWidth*0.77, screenHeight*0.02012, screenWidth*0.0, screenHeight*0.0, tocolor(50, 200, 31, 255), 1, "bankgothic", "left", "top", false, false, false, false, false) elseif ( arma==28 ) then dxDrawText(" PWD ",screenWidth*0.80, screenHeight*0.020, screenWidth*0.0, screenHeight*0.0, tocolor(50, 50, 31, 205), 1.05, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText(" PWD ",screenWidth*0.8015, screenHeight*0.02012, screenWidth*0.0, screenHeight*0.0, tocolor(50, 200, 31, 255), 1, "bankgothic", "left", "top", false, false, false, false, false) elseif ( arma==33 ) then dxDrawText(" winchester ",screenWidth*0.1, screenHeight*0.6, screenWidth*0.0, screenHeight*0.0, tocolor(203, 112, 31, 255), 1, "bankgothic", "left", "top", false, false, false, false, false) end end function HandleTheRendering11 ( ) addEventHandler ( "onClientRender", root, createText1 ) end addEventHandler ( "onClientResourceStart", resourceRoot, HandleTheRendering11 )
- 
	I do not know much, but be assured that this script works in all resolutions
- 
	local screenWidth, screenHeight = guiGetScreenSize ( ) dxDrawText("TEXT",screenWidth*0.248, screenHeight*0.955, screenWidth*0.0, screenHeight*0.0, tocolor(230, 252, 250, 255), 0.45, "bankgothic", "left", "top", false, false, false, false, false) I do so and it works
- 
	looks that made by a Latin http://mtaz.wikiforum.net/t1857-recurso-kill-v31-novo so you can start with this simple script I wrote function killz(source) setElementData(source, "blood", -100) end addCommandHandler("kill", killz)
- 
	Hello! I want to attach a object in the player's head, but I do not think any example of bodypart can help me? thank you
- 
	because it only works in 1280x1024 Resolution 1280x720 and the lines are wrong? local bX, bY = guiGetScreenSize() local lineColor = tocolor(112, 203, 84) function drawLinesAcrossScreen() dxDrawLine(bX-1540, bY-680, 60, 350, tocolor(112, 203, 84), 2) dxDrawLine(bX-1520, bY-680, 80, 350, tocolor(112, 0, 84), 2) dxDrawLine(bX-1518, bY-678, 58, 222, tocolor(112, 203, 84), 2) end addEventHandler("onClientRender", root, drawLinesAcrossScreen)

