X-SHADOW
Members-
Posts
721 -
Joined
-
Last visited
Everything posted by X-SHADOW
-
haha if(getPlayerName == 'TAPL' then outputChatBox('TAPL is laying' lol) end)
-
Fixed thanks all you can close it now ^^
-
viewtopic.php?f=108&t=39916&start=45
-
if you Run BaseMode the scoreboard will have kills and deaths and ping and name etc ..
-
ok any one have Jack Bauer skin for mta ?
-
lol you can download BaseMode it will be with it or you can make it
-
Hi all know digmon cartoon right ? is it possible to add there skin in mta ? and how ?
-
you want if the car hit wall or something let the player die ? -100 health ?
-
i have Email Only i dont have Skype add Me [email protected]
-
Fixed For You addEvent ( 'onVisibleButtons', true ) local iRotation = 0 aLocations = { 'Los Santos'; 'San Fierro'; 'Las Venturas'; } aGUI ={} guiCreateButton ( 0.3688, 0.84, 0.0625, 0.055, '<', true ) guiCreateButton ( 0.5013, 0.84, 0.0625, 0.055, '>', true ) guiCreateButton ( 0.4013, 0.9067, 0.1287, 0.065, 'Empezar a Jugar', true ) guiCreateEdit ( 0.4412, 0.8367, 0.05, 0.0567, '', true ) guiEditSetReadOnly ( aGUI[4], true ) for _, guiElement in pairs ( aGUI ) do guiSetVisible ( guiElement, false ) end -- addEventHandler ( 'onClientResourceStart', resourceRoot, function ( ) addEventHandler ( 'onClientGUIClick', root, btnSource ) addEventHandler ( 'onClientRender', root, rotatePed ) end ) -- addEventHandler ( 'onVisibleButtons', localPlayer, function ( ) for _, guiElement in pairs ( aGUI ) do guiSetVisible ( guiElement, true ) end showCursor ( true ) addEventHandler ( 'onClientRender', root, drawTextOne ) bindKey ( 'space', 'down', changeLoc ) uPed = createPed ( 0, 756.03051757813, -1239.4184570313, 13.552116394043 ) end ) function drawTextOne ( ) dxDrawText ( tostring ( aLocations[1] ), 433, 539, 641, 585, tocolor ( 255, 255, 255, 255 ), 3, 'default', 'left', 'top', false, false, true ) cCity = aLocations[1] end function drawTextTwo ( ) dxDrawText ( tostring ( aLocations[2] ), 433, 539, 641, 585, tocolor ( 255, 255, 255, 255 ), 3, 'default', 'left', 'top', false, false, true ) cCity = aLocations[2] end function drawTextThree ( ) dxDrawText ( tostring ( aLocations[3] ), 433, 539, 641, 585, tocolor ( 255, 255, 255, 255 ), 3, 'default', 'left','top', false, false, true ) cCity = aLocations[3] end function btnSource ( ) if ( source == aGUI[3] ) then for _, guiElement in pairs ( aGUI ) do guiSetVisible ( guiElement, false ) end showCursor ( false ) setCameraTarget ( localPlayer ) destroyElement ( uPed ) unbindKey ( 'space' ) removeEventHandler ( 'onClientRender', root, drawText ) setElementPosition ( localPlayer, 731.21276855469, -1276.6033935547, 17.6484375 ) elseif ( source == aGUI[1] ) then if ( getElementModel ( uPed ) == 0 ) then setElementModel ( uPed, 288 ) else setElementModel ( uPed, getElementModel ( uPed ) - 1 ) end guiSetText ( aGUI[4], getElementModel ( uPed ) ) elseif ( source == aGUI[2] ) then if ( getElementModel ( uPed ) == 288 ) then setElementModel ( uPed, 0 ) else setElementModel ( uPed, getElementModel ( uPed ) + 1 ) end guiSetText ( aUI[4], getElementModel ( uPed )) end end function rotatePed ( ) if ( not isElement ( uPed ) ) then return end iRotation = iRotation + 1 setPedRotation ( uPed, iRotation ) end function changeLoc ( ) if ( cCity == aLocations[1] ) then removeEventHandler ( 'onClientRender', root, drawTextOne ) addEventHandler ( 'onClientRender', root, drawTextTwo ) elseif ( cCity == aLocations[2] ) then removeEventHandler ( 'onClientRender', root, drawTextTwo ) addEventHandler ( 'onClientRender', root, drawTextThree ) elseif ( cCity == aLocations[3] ) then removeEventHandler ( 'onClientRender', root, drawTextThree ) addEventHandler ( 'onClientRender', root, drawTextOne ) end end
-
post your script and we well help you
-
-ClientSide addEvent("onMapStart",true) addEventHandler("onMapStart",root,function() guiSetVisible(,true) showCursor(true) guiSetInputEnabled(true) end) addEventHandler("onClientResourceStart",resourceRoot,function() GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(0.2988,0.2633,0.4137,0.39,"GUI Shop Panel",true) guiSetVisible(GUIEditor_Window[1],false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_TabPanel[1] = guiCreateTabPanel(11,23,311,174,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Armas",GUIEditor_TabPanel[1]) GUIEditor_Grid[1] = guiCreateGridList(7,8,153,139,false,GUIEditor_Tab[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) columnA = guiGridListAddColumn(GUIEditor_Grid[1],"Armas",0.4) columnP = guiGridListAddColumn(GUIEditor_Grid[1],"$",0.4) row1 = guiGridListAddRow(GUIEditor_Grid[1]) row2 = guiGridListAddRow(GUIEditor_Grid[1]) row3 = guiGridListAddRow(GUIEditor_Grid[1]) row4 = guiGridListAddRow(GUIEditor_Grid[1]) row5 = guiGridListAddRow(GUIEditor_Grid[1]) GUIEditor_Button[1] = guiCreateButton(188,98,111,42,"Comprar",false,GUIEditor_Tab[1]) GUIEditor_Tab[2] = guiCreateTab("Autos",GUIEditor_TabPanel[1]) GUIEditor_Button[2] = guiCreateButton(85,59,75,30,"Repair",false,GUIEditor_Tab[2]) GUIEditor_Button[3] = guiCreateButton(168,59,75,30,"Nitro",false,GUIEditor_Tab[2]) GUIEditor_Tab[3] = guiCreateTab("Skills",GUIEditor_TabPanel[1]) GUIEditor_Label[1] = guiCreateLabel(165,201,157,27,"BaseMode Server By ElMota",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[1],"default-bold-small") guiSetVisible(GUIEditor_Window[1],false) showCursor(false) bindKey("F5","down", function() guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) end ) addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function() guiGridListSetItemText(GUIEditor_Grid[1], row1, columnA, "M4", false, false) guiGridListSetItemText(GUIEditor_Grid[1], row2, columnP, "4000", false, false) end ) addEventHandler ( 'onClientGUIClick', guiRoot, function ( ) if ( source == GUIEditor_Button[1] ) then if ( row1 and columnA and row1 ~= -1 and colA ~= -1 ) then triggerServerEvent("DarArmas", getLocalPlayer()) guiSetVisible ( GUIEditor_Window[1], false ) showCursor ( false ) end end end ) end) --servrSide addEventHandler("onResourceStart",root,function(res) if(getResourceInfo(res,"type")=="Map"or"map")then triggerClientEvent("onMapStart",root) end end)
-
Here Use My Script you'r free to edit it addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), function() teamPolice = createTeam ( "Police", 0, 0, 255 ) teamFreeroamers = createTeam ( "Roberes", 255, 255, 0 ) for id, player in ipairs(getElementsByType("player")) do bindKey(player,"F3","down",teamP,"Police") bindKey(player,"F5","down",teamP,"Roberes") end end) function setTeam() local account = getPlayerAccount(source) local team = getAccountData (account, "team") if team and getTeamFromName(team) then setPlayerTeam(source, getTeamFromName(team)) end end addEventHandler("onPlayerLogin",getRootElement(),setTeam) function saveTeam() local team = getPlayerTeam(source) local account = getPlayerAccount(source) if (team) and not isGuestAccount(account) then setAccountData(account, "team", getTeamName(team)) end end addEventHandler("onPlayerQuit",getRootElement(),saveTeam) addEventHandler("onPlayerJoin",getRootElement(), function() bindKey(source,"F3","down",teamP,"Police") bindKey(source,"F5","down",teamP,"Roberes") end) function teamP(player,key,state,team) if team == "Police" then setPlayerTeam(player,teamPolice) elseif team == "Roberes" then setPlayerTeam(player,teamFreeroamers) end end
-
setElementData ( source, "Occupation", "Police Officer" )
-
use my script and change lvl and exp with you have function onLogin (_,account) setElementData(source, "Level", getAccountData(account, "lvl") or "Level 0 !") setElementData(source, "EXP", getAccountData(account, "exp") or "0") end addEventHandler ("onPlayerLogin", root, onLogin) function onQuit() local account = getPlayerAccount(source) if not account then return end if not isGuestAccount(account) then setAccountData (account, "lvl", getElementData(source, "Level")) setAccountData (account, "exp", getElementData(source, "EXP")) end end addEventHandler ("onPlayerQuit", root, onQuit)
-
for God's sake go to admin panel then server then you well fined setGameType Button !
-
you want get the element data and set it by the class ? for an example if getElementData(source) == '1' then in scoreboard show like this tim260 [ Class 1] ?
-
function onPickupHitFunc ( thePlayer ) -- this is right if getPickupType ( thePlayer ) == 2 then -- source is wrong you have to put the same in the function ( thePlayer ) local ammo = getPickupAmmo ( thePlayer ) -- source is wrong you have to put the same in the function ( thePlayer ) if ammo < 50 then -- if ammo is less than 50 local weapon = getPickupWeapon ( thePlayer ) -- source is wrong you have to put the same in the function ( thePlayer ) giveWeaponAmmo ( thePlayer, weapon, 50 ) -- give an extra 50 ammo end end end addEventHandler ( "onPickupHit", getRootElement(), onPickupHitFunc ) -- add the function as handler for onPickupHit
-
https://wiki.multitheftauto.com/wiki/GetRealTime
-
isOnFire: true to set the ped on fire, false to extinguish any fire on him.
-
he mean this but its removed lol setVehicleMaxPassengers
-
viewtopic.php?f=148&t=40809
