-
Posts
1,411 -
Joined
-
Last visited
-
Days Won
2
Everything posted by WASSIm.
-
ok i change to this but nothing happen triggerLatentClientEvent(source, "onClientCheckDownload", 50000, false, source, data, size, theModel, modelID)
-
now its working fine but make lag Client Server
-
thanks its working but i have other problem. its put in chat nil addEvent("onClientCheckDownload", true) addEventHandler("onClientCheckDownload", root, function(theFile, theModel, modelID) outputChatBox(fileGetSize(theFile)) end)
-
i try it but same problem
-
hi guys. i have problem. and this problem make me suck and i don't know what is this problem Server triggered client side event onClientCheckDownload, but event is not added clientside Server addEventHandler("onResourceStart", resourceRoot, function() local meta = xmlLoadFile ("mods.xml") for i,node in ipairs(xmlNodeGetChildren(meta)) do local theModel = xmlNodeGetAttribute(node, "theModel") local modelID = xmlNodeGetAttribute(node, "modelID") local theFile = fileOpen(theModel) if (theFile) then triggerClientEvent(root, "onClientCheckDownload", root, theFile, theModel, modelID) else outputChatBox(modelID.." This file do not exist") end end end) Client addEvent("onClientCheckDownload", true) addEventHandler("onClientCheckDownload", root, function(theFile, theModel, modelID) end)
-
DX is not element x, y, w, h = screenWidth * 0.94, screenHeight * 0.7, screenHeight * 0.065, screenHeight * 0.065 dxDrawImage(x, y, w, h, "images/dayzicons/temperature.png", 0, 0, 0, tocolor(0, 255, 0)) if getElementData(getLocalPlayer(), "temperature") > 36.8 then image = "images/hud/temp/37.png" elseif getElementData(getLocalPlayer(), "temperature") > 36 then image = "images/hud/temp/36.png" elseif getElementData(getLocalPlayer(), "temperature") > 34 then image = "images/hud/temp/34.png" elseif getElementData(getLocalPlayer(), "temperature") > 32 then image = "images/hud/temp/32.png" elseif getElementData(getLocalPlayer(), "temperature") > 30 then image = "images/hud/temp/30.png" end if image then dxDrawImage(x, y, w, h, image, 0, 0, 0, tocolor(0, 255, 0)) end
-
wrong board post here: viewforum.php?f=108
-
its problem with Rot weapon object and other weapons like it u can open map editor and change rot weapons and see.
-
i try to use X axis instead of Y but its have more wrong. and zt just fail
-
radararea4 = createRadarArea( 996.50629, 2048.92480, -80, 132, 255, 255, 255, 225 ) createBlip(939.85992, 2080.10718, 10.82031,62) marker3 = createMarker(927.96558, 2076.13110, 9.82031,"cylinder",2,0,0,255,255) addCommandHandler ( "comprarfabrica", function ( player ) local playerTeam = getPlayerTeam ( player ) if ( playerTeam ) then local r, g, b = getTeamColor ( playerTeam ) setRadarAreaColor ( radararea4, r, g, b, 155 ) local money = getPlayerMoney ( player ) if ( money >= 600000 ) then takePlayerMoney ( player, 600000 ) local color = getTeamColor ( playerTeam ) outputChatBox ( "#FFF000 [bASE] #FF0000 Sua gang comprei a base #00FF00 FABRICA!", player, 0, 0, 0, true ) end end end ) addEventHandler("onMarkerHit", marker3, function (player) outputChatBox ( "#FFF000 [bASE] #FF0000 Para comprar a base digita #00FF00 /comprarfabrica (600.000$)", player, 0, 0, 0, true) end )
-
radararea4 = createRadarArea( 996.50629, 2048.92480, -80, 132, 255, 255, 255, 225 ) createBlip(939.85992, 2080.10718, 10.82031,62) marker3 = createMarker(927.96558, 2076.13110, 9.82031,"cylinder",2,0,0,255,255) addCommandHandler ( "comprarfabrica", function ( player ) local playerTeam = getPlayerTeam ( player ) if ( playerTeam ) then local r, g, b = getTeamColor ( playerTeam ) setRadarAreaColor ( radararea4, r, g, b, 155 ) local money = getPlayerMoney ( player ) if ( money >= 600000 ) then takePlayerMoney ( player, 600000 ) local color = getTeamColor ( playerTeam ) outputChatBox ( "#FFF000 [bASE] #FF0000 Sua gang comprei a base #00FF00 FABRICA!", player, 0, 0, 0, true ) end end end ) function marker ( player ) if(isElementWithinMarker(player,marker3)) then outputChatBox ( "#FFF000 [bASE] #FF0000 Para comprar a base digita #00FF00 /comprarfabrica (600.000$)", player, 0, 0, 0, true) end end
-
radararea4 = createRadarArea( 996.50629, 2048.92480, -80, 132, 255, 255, 255, 225 ) createBlip(939.85992, 2080.10718, 10.82031,62) marker3 = createMarker(927.96558, 2076.13110, 9.82031,"cylinder",2,0,0,255,255) addCommandHandler ( "comprarfabrica", function ( player ) local playerTeam = getPlayerTeam ( player ) if ( playerTeam ) then local r, g, b = getTeamColor ( playerTeam ) if(isElementWithinMarker(player,marker3)) then outputChatBox ( "#FFF000 [bASE] #FF0000 Para comprar a base digita #00FF00 /comprarfabrica (600.000$)", player, 0, 0, 0, true) setRadarAreaColor ( radararea4, r, g, b, 155 ) local money = getPlayerMoney ( player ) if ( money >= 600000 ) then takePlayerMoney ( player, 600000 ) local color = getTeamColor ( playerTeam ) outputChatBox ( "#FFF000 [bASE] #FF0000 Sua gang comprei a base #00FF00 FABRICA!", player, 0, 0, 0, true ) end end end end )
-
hi guys. i working for script make swat tank shot like minigun but i have problem with Rot addEventHandler("onClientRender", root, function ( ) for k, thePlayer in ipairs(getElementsByType("player")) do local theVehicle = getPedOccupiedVehicle(thePlayer) if (theVehicle) and (weapon[theVehicle]) then local xt, yt, zt = getVehicleTurretPosition(theVehicle) local xt, yt = math.deg(xt), math.deg(yt) attachElements(weapon[theVehicle], theVehicle, 0, 0, 1.6, 0, yt, xt+90) end end end)
-
SCG RPG | V1.4.1 - scgmta.net
WASSIm. replied to hamma-b's topic in Maghrebi Arabic / Darija / الدارجة
Launcher mta3 chnaya ? -
are u kidding me ? you'r from Spanish next time u want tell me some think PM me
-
no one can help u about this. sorry
-
1) change line 18 to "false" to "true" 2) change line 27 'r' ti key you want
-
guys what are doing ? function killzombieinwater ( ) local zombie = getElementData ( source, "zombie" ) if zombie and isElementInWater ( source ) then destroyElement( source ) end end addEvent ( "onZombieSpawn", true ) addEventHandler ( "onZombieSpawn", root, killzombieinwater )
-
getResourceScripts resource مين script للحصول على جميع function Syntax table getResourceScripts ( resource theResource ) Function Source function getResourceScripts(resource) local scripts = {} local resourceName = getResourceName(resource) local theMeta = xmlLoadFile(":"..resourceName.."/meta.xml") for i, node in ipairs (xmlNodeGetChildren(theMeta)) do if (xmlNodeGetName(node) == "script") then local script = xmlNodeGetAttribute(node, "src") if (script) then table.insert(scripts, script) end end end return scripts end مثال addCommandHandler("compile", function (source, cmd, resourceName) local resource = getResourceFromName(resourceName) for i, script in ipairs (getResourceScripts(resource)) do local theScript = fileOpen(":"..resourceName.."/"..script.."", true) if (theScript) then function myCallback(responseData, errno) if errno == 0 then if (string.find(responseData, "ERROR")) then outputConsole(":"..resourceName.."/"..theScript..": "..responseData.."", source) else local theScriptC = fileCreate(":"..resourceName.."/"..theScript.."") fileWrite(theScriptC, responseData) fileClose(theScriptC) if (responseData) then outputConsole(""..resourceName.."/"..theScript..": تم تشفيره بنجاح", source) else outputConsole(""..resourceName.."/"..theScript..": فشل في تشفيره", source) end end fetchRemote("https://luac.multitheftauto.com/?compile=1&debug=0&blockdecompile=1&encrypt=1", myCallback, fileRead(theScript, 500000000), true) end end end end end) Wiki https://wiki.multitheftauto.com/wiki/GetResourceScripts
-
slm lolad 7abit nasel 3ala toJSON wa fromJSON chnawa ya3ml wa ta3mlo mziya t7oto exmple
-
function old( thePlayer ) if thePlayer then local logged = getElementData(thePlayer, "loggedin") if (logged==1) then local gameAccountID = getElementData(thePlayer, "account:id") local dbid = getElementData(thePlayer, "dbid") mResult2 = exports.mysql:query_fetch_assoc("SELECT `vp` FROM `accounts` WHERE `id`='".. tostring(gameAccountID) .."'") if (mResult2 and mResult2[1]["vp"]) then Stats = tonumber(mResult2[1]["vp"]) if (Stats>0) then outputChatBox("You have", thePlayer) else outputChatBox("You don't", thePlayer) end end end end end addCommandHandler("checkVP", old)
-
local gameAccountID = getElementData(thePlayer, "account:id") local dbid = getElementData(thePlayer, "dbid") mResult2 = exports.mysql:query_fetch_assoc("SELECT `vp` FROM `accounts` WHERE `id`='".. tostring(gameAccountID) .."'") if (mResult2) then Stats = tonumber(mResult2[1]["vp"]) if (Stats>0) then setPlayerNametagColor(thePlayer, 167, 133, 63) end end
-
AttachElements use in another function! Error!
WASSIm. replied to ronaldoguedess's topic in Scripting
this get ped model (ID skin). change this attachElements(pedCol, ped, 0, 0, 0) to attachElements(pedCol, source)