-
Posts
7,337 -
Joined
-
Days Won
11
Everything posted by TAPL
-
viewtopic.php?f=119&t=41382#p420388
-
function showspeedo(player) if player ~= localPlayer then return end addEventHandler("onClientPreRender",root,calculateData) addEventHandler("onClientRender",root,drawSpeedometer) end addEventHandler("onClientVehicleEnter", root, showspeedo) function delspeedo(player) if player ~= localPlayer then return end removeEventHandler("onClientPreRender",root,calculateData) removeEventHandler("onClientRender",root,drawSpeedometer) end addEventHandler("onClientVehicleExit", root, delspeedo)
-
skinID = {277,278,279} function skins() list = guiCreateGridList(0.1, 0.4, 0.80, 0.35, true,window) column = guiGridListAddColumn(list, "Skin's", 0.85) for _,v in ipairs (skinID) do row = guiGridListAddRow(list) guiGridListSetItemText(list, row, column, tostring(v), false, true) end end addEventHandler("onClientResourceStart", resourceRoot, skins)
-
skinID = {277,278,279} function skins() list = guiCreateGridList(0.1, 0.4, 0.80, 0.35, true,window) column = guiGridListAddColumn(list, "Skin's", 0.85) for _,v in ipairs (skinID) do row = guiGridListAddRow(list) guiGridListSetItemText(list, row, tostring(v), false, true) end end addEventHandler("onClientResourceStart", resourceRoot, skins)
-
rotation: rotation of the player on spawn.
-
as you were using it in the image.
-
i dont mean the map just the defense mod I didn't give you map, i give you the gamemode that include the Police Shield.
-
theButton = guiCreateButton(0.5, 0.5, 0.2, 0.1, "jail", true) =========================================================================== addEventHandler("onClientGUIClick",root, function() if source == theButton then executeCommandHandler("jail") end end )
-
This is GameMode already comes with MTA folder. or you can get it from here http://code.google.com/p/mtasa-resources/downloads/list
-
اها addEventHandler("onClientGUIClick",root, function() if source == theButton then executeCommandHandler("jail") end end )
-
~_~ yes good good just remember to put it server side in meta.xml
-
قصدك زر لفتح النافذة؟ -- Client Side -- bindKey("F2", "down", "jail")
-
What is the problem? i don't see any.
-
Download any House System from community and look at their code and you will know how.
-
for _, team in ipairs(getElementsByType("team")) do if getTeamFriendlyFire(team) then setTeamFriendlyFire(team, false) end end
-
solidsnake Joined:Fri Sep 11, 2009 4:56 am Solidsnake14 Joined:Thu Sep 24, 2009 10:59 am
-
Administrating your server https://wiki.multitheftauto.com/wiki/Server_Manual
-
memberlist.php?mode=viewprofile&u=41631 memberlist.php?mode=viewprofile&u=41876
-
and the trigger wrong triggerServerEvent("mechanic:repair", localVehicle, attacker) should be triggerServerEvent("mechanic:repair", attacker, localVehicle)
-
i don't see where you set the element data here triggerEvent("onKeypadButtonClicked",source,getElementData(keypadWindow,"keypadID")) the element data must be "a51MainGateKeypadCode" and i still don't understand why you need the table here local keypadCodes = { ["a51MainGateKeypadCode"] = math.random(0, 50000) } you can just do addEvent("verifyKeypadCode",true) addEventHandler("verifyKeypadCode",root,function(code) local keypadCodes = math.random(0, 50000) if tonumber(code) then if tonumber(code) == keypadCodes then triggerClientEvent(client,"onKeypadVerificationSuccessful",client) elseif tonumber(code) >= keypadCodes then triggerClientEvent(client,"oncodeishigher",client) elseif tonumber(code) <= keypadCodes then triggerClientEvent(client,"oncodeislower",client) end end end)
-
line 13 in my code is 'end' anyway, show your client.
