-
Posts
7,337 -
Joined
-
Days Won
11
Everything posted by TAPL
-
-- Server Side -- function drop(player,cmd,amount) local x,y,z = getElementPosition(player) local weapon = getPedWeapon(player) local ammo = getPedTotalAmmo(player) local amount = tonumber(amount) if ammo >= amount then takeWeapon(player,weapon,amount) setElementID(createPickup(x,y+5,z,2,weapon,5000,amount),"WeaponPickUp") outputChatBox("*You Are Drop Successfuly",player,0,255,0,true) else outputChatBox("*You Don't Have "..amount..".",player,255,0,0,true) end end addCommandHandler("drop",drop) addEventHandler("onPickupHit", root, function(player) if getElementID(source) == "WeaponPickUp" then setTimer(destroyElement,50,1,source) outputChatBox("You Pickup Droped ammo..",player,150,0,255,true) end end)
-
setTeamFriendlyFire Server-only function
-
for _, team in ipairs(getElementsByType("team")) do if getTeamFriendlyFire(team) then setTeamFriendlyFire(team, false) end end
-
Try function guiToggleVisible() if guiGetVisible(Panel) then addEventHandler("onClientRender", gRoot, HideWindow) showCursor(false) guiSetInputEnabled(false) guiSetVisible(Panel, false) guiSetVisible(PanelImage, false) if UserDataChanged then saveUserData() end UserDataChanged = nil else refreshPanelData(localPlayer) guiSetVisible(Panel, true) guiSetVisible(PanelImage, true) showCursor(true) guiSetInputEnabled(true) addEventHandler("onClientRender", gRoot, ShowWindow) guiGridListClear(PlayersListGUI) for id, playeritem in ipairs(getElementsByType("player")) do if playeritem ~= localPlayer then local row = guiGridListAddRow(PlayersListGUI) guiGridListSetItemText ( PlayersListGUI, row, playerListColumnGUI, string.gsub(getPlayerName(playeritem),"#%x%x%x%x%x%x",""), false, false) end end end end
-
Try function guiToggleVisible ( ) if not PanelOpened then PanelOpened = 1 if guiGetVisible ( Panel ) == true then addEventHandler ( "onClientRender", gRoot, HideWindow) showCursor ( false ) guiSetInputEnabled ( false ) guiSetVisible ( Panel, false ) guiSetVisible ( PanelImage, false ) if UserDataChanged then saveUserData() end UserDataChanged = nil else refreshPanelData(getLocalPlayer()) guiSetVisible ( Panel, true ) guiSetVisible ( PanelImage, true ) showCursor ( true ) guiSetInputEnabled ( true ) addEventHandler ( "onClientRender", gRoot, ShowWindow) guiGridListClear ( PlayersListGUI ) for id, playeritem in ipairs(getElementsByType("player")) do if playeritem == getLocalPlayer() then else local row = guiGridListAddRow ( PlayersListGUI ) guiGridListSetItemText ( PlayersListGUI, row, playerListColumnGUI, string.gsub(getPlayerName ( playeritem ),"#%x%x%x%x%x%x",""), false, false ) end end end end end
-
https://community.multitheftauto.com/ind ... ils&id=292
-
to set the skin you need to use setElementModel Server Side https://wiki.multitheftauto.com/wiki/SetElementModel
-
أبحث هنا https://community.multitheftauto.com إذا ما لقيته أبدأ بتعلم البرمجة و سويه بنفسك https://wiki.multitheftauto.com/wiki/Scr ... troduction أو شف لك أحد يبرمجه لك بمقابل
-
Admin acl ضيف ذا لـ "command.start" access="true">
-
Delete the gta_sa.set file located in the GTA San Andreas User Files in your Documents folder/library (Windows Vista and 7 users) or My Documents directory (Windows XP users)
-
https://wiki.multitheftauto.com/wiki/OnClientGUIClick https://wiki.multitheftauto.com/wiki/TriggerServerEvent https://wiki.multitheftauto.com/wiki/GetPlayerMoney https://wiki.multitheftauto.com/wiki/TakePlayerMoney https://wiki.multitheftauto.com/wiki/GiveWeapon
-
You don't need to make it server side. -- Client Side -- local door1marker = createMarker(2655, 2706, 411, "arrow", 1, 100, 20, 20) function door1markerhit(player) if getElementType(player) == "player" and player == localPlayer then guiSetVisible(keypadWindow,true) showCursor(true) setElementData(keypadWindow,"keypadID","GateKeypadCode") end end addEventHandler( "onClientMarkerHit", door1marker, door1markerhit)
-
addEventHandler("onPlayerSpawn", rootElement, onPlayerSpawnHandler) if string.find(scriptString, "addEventHandler") then eventString = string.sub(scriptString, 18, #scriptString) end i think this will return "onPlayerSpawn", rootElement, onPlayerSpawnHandler)" try to fix it..
-
https://wiki.multitheftauto.com/wiki/AddEventHandler eventName: the name of the event which triggered the handler function.
-
outputChatbox should be outputChatBox
-
Dude start the script after creating the teams.
-
An idiot upload my resource and copying my name. https://community.multitheftauto.com/index.php?p= ... ls&id=5348 https://community.multitheftauto.com/ind ... &id=331591 DONE
