Jump to content

Furious^ONE!

Members
  • Posts

    171
  • Joined

  • Last visited

Everything posted by Furious^ONE!

  1. Merci de ton aide , mais j'ai essaiyé de le faire fonctionné avec plusieurs essaie sur un serveur exprés pour tout ce qui est Mapping script etc.. et sa n'a pas fonctionne , j'ai même fait planté le freeroam a plusieurs reprise.
  2. Go add this ressource https://community.multitheftauto.com/ind ... ls&id=1514 And start ressource Creategangs Add/Kick members. Add/Remove sub leaders. Gangs list: leader, member count. Leave gang Destroy gang /creategang
  3. Bonjour, Je recherche actuellement comment je fait pour mettre une image de fond sur la GUI du freeroam quand on appuie sur F1. J'ai tenté d'essaiyé mais je n'arrive pas car quand demarre le freeroam le F1 Ne fonctionne pas.. Voilà le code: J'ai ajouté ça a la ligne 1524. {'img', src='fnf.jpg'} fr_client.lua: CONTROL_MARGIN_RIGHT = 5 LINE_MARGIN = 5 LINE_HEIGHT = 16 g_Root = getRootElement() g_ResRoot = getResourceRootElement(getThisResource()) g_Me = getLocalPlayer() server = createServerCallInterface() guiSetInputMode("no_binds_when_editing") --------------------------- -- Set skin window --------------------------- function skinInit() setControlNumber(wndSkin, 'skinid', getElementModel(g_Me)) end function showSkinID(leaf) if leaf.id then setControlNumber(wndSkin, 'skinid', leaf.id) end end function applySkin() local skinID = getControlNumber(wndSkin, 'skinid') if skinID then server.setMySkin(skinID) fadeCamera(true) end end wndSkin = { 'wnd', text = 'Set skin', width = 250, x = -20, y = 0.3, controls = { { 'lst', id='skinlist', width=230, height=290, columns={ {text='Skin', attr='name'} }, rows={xml='skins.xml', attrs={'id', 'name'}}, onitemclick=showSkinID, onitemdoubleclick=applySkin }, {'txt', id='skinid', text='', width=50}, {'btn', id='set', onclick=applySkin}, {'btn', id='close', closeswindow=true} }, oncreate = skinInit } function setSkinCommand(cmd, skin) skin = skin and tonumber(skin) if skin then server.setMySkin(skin) fadeCamera(true) closeWindow(wndSpawnMap) closeWindow(wndSetPos) end end addCommandHandler('setskin', setSkinCommand) addCommandHandler('ss', setSkinCommand) --------------------------- --- Set animation window --------------------------- function applyAnimation(leaf) if type(leaf) ~= 'table' then leaf = getSelectedGridListLeaf(wndAnim, 'animlist') if not leaf then return end end server.setPedAnimation(g_Me, leaf.parent.name, leaf.name, true, true) end function stopAnimation() server.setPedAnimation(g_Me, false) end addCommandHandler("stopanim", stopAnimation) bindKey("lshift", "down", "stopanim") wndAnim = { 'wnd', text = 'Set animation', width = 250, x = -20, y = 0.3, controls = { { 'lst', id='animlist', width=230, height=290, columns={ {text='Animation', attr='name'} }, rows={xml='animations.xml', attrs={'name'}}, expandlastlevel=false, onitemdoubleclick=applyAnimation }, {'btn', id='set', onclick=applyAnimation}, {'btn', id='stop', onclick=stopAnimation}, {'btn', id='close', closeswindow=true} } } addCommandHandler('anim', function(command, lib, name) server.setPedAnimation(g_Me, lib, name, true, true) end ) --------------------------- -- Weapon window --------------------------- function addWeapon(leaf, amount) if type(leaf) ~= 'table' then leaf = getSelectedGridListLeaf(wndWeapon, 'weaplist') amount = getControlNumber(wndWeapon, 'amount') if not amount or not leaf then return end end server.giveMeWeapon(leaf.id, amount) end wndWeapon = { 'wnd', text = 'Give weapon', width = 250, controls = { { 'lst', id='weaplist', width=230, height=280, columns={ {text='Weapon', attr='name'} }, rows={xml='weapons.xml', attrs={'id', 'name'}}, onitemdoubleclick=function(leaf) addWeapon(leaf, 500) end }, {'br'}, {'txt', id='amount', text='500', width=60}, {'btn', id='add', onclick=addWeapon}, {'btn', id='close', closeswindow=true} } } function giveWeaponCommand(cmd, weapon, amount) weapon = tonumber(weapon) or getWeaponIDFromName(weapon) if not weapon then return end amount = amount and tonumber(amount) or 500 server.giveMeWeapon(math.floor(weapon), amount) end addCommandHandler('give', giveWeaponCommand) addCommandHandler('wp', giveWeaponCommand) --------------------------- -- Fighting style --------------------------- addCommandHandler('setstyle', function(cmd, style) style = style and tonumber(style) if style then server.setPedFightingStyle(g_Me, style) end end ) --------------------------- -- Clothes window --------------------------- function clothesInit() if getElementModel(g_Me) ~= 0 then errMsg('You must have the CJ skin set in order to apply clothes.') closeWindow(wndClothes) return end if not g_Clothes then triggerServerEvent('onClothesInit', g_Me) end end addEvent('onClientClothesInit', true) addEventHandler('onClientClothesInit', g_Root, function(clothes) g_Clothes = clothes.allClothes for i,typeGroup in ipairs(g_Clothes) do for j,cloth in ipairs(typeGroup.children) do if not cloth.name then cloth.name = cloth.model .. ' - ' .. cloth.texture end cloth.wearing = clothes.playerClothes[typeGroup.type] and clothes.playerClothes[typeGroup.type].texture == cloth.texture and clothes.playerClothes[typeGroup.type].model == cloth.model or false end table.sort(typeGroup.children, function(a, b) return a.name < b.name end) end bindGridListToTable(wndClothes, 'clothes', g_Clothes, false) end ) function clothListClick(cloth) setControlText(wndClothes, 'addremove', cloth.wearing and 'remove' or 'add') end function applyClothes(cloth) if not cloth then cloth = getSelectedGridListLeaf(wndClothes, 'clothes') if not cloth then return end end if cloth.wearing then cloth.wearing = false setControlText(wndClothes, 'addremove', 'add') server.removePlayerClothes(g_Me, cloth.parent.type) else local prevClothIndex = table.find(cloth.siblings, 'wearing', true) if prevClothIndex then cloth.siblings[prevClothIndex].wearing = false end cloth.wearing = true setControlText(wndClothes, 'addremove', 'remove') server.addPedClothes(g_Me, cloth.texture, cloth.model, cloth.parent.type) end end wndClothes = { 'wnd', text = 'Clothes', x = -20, y = 0.3, width = 350, controls = { {
  4. i'm add {'img', src='test.png'} in this code ? wndMain = { 'wnd', text = 'FR GUI', x = 10, y = 150, width = 280, controls = { {'img', src='test.png'} {'lbl', text='Local player'}, {'br'}, {'btn', id='kill', onclick=killLocalPlayer}, {'btn', id='skin', window=wndSkin}, {'btn', id='anim', window=wndAnim}, {'btn', id='weapon', window=wndWeapon}, {'btn', id='clothes', window=wndClothes}, {'btn', id='playergrav', text='grav', window=wndGravity}, {'btn', id='warp', window=wndWarp}, {'btn', id='stats', window=wndStats}, {'btn', id='bookmarks', window=wndBookmarks}, {'br'}, {'chk', id='jetpack', onclick=toggleJetPack}, {'chk', id='falloff', text='fall off bike', onclick=toggleFallOffBike}, {'br'}, {'lbl', text='Pos:'}, {'lbl', id='xpos', text='x', width=45}, {'lbl', id='ypos', text='y', width=45}, {'lbl', id='zpos', text='z', width=45}, {'btn', id='setpos', text='map', window=wndSetPos}, {'btn', id='setinterior', text='int', window=wndSetInterior}, {'br'}, {'br'}, {'lbl', text='Vehicles'}, {'br'}, {'lbl', text='Current:'}, {'lbl', id='curvehicle'}, {'br'}, {'btn', id='createvehicle', window=wndCreateVehicle, text='create'}, {'btn', id='repair', onclick=repairVehicle}, {'btn', id='flip', onclick=flipVehicle}, {'btn', id='upgrades', window=wndUpgrades}, {'btn', id='color', onclick=openColorPicker}, {'btn', id='paintjob', window=wndPaintjob}, {'br'}, {'chk', id='lightson', text='Lights on', onclick=forceLightsOn}, {'chk', id='lightsoff', text='Lights off', onclick=forceLightsOff}, {'br'}, {'br'}, {'lbl', text='Environment'}, {'br'}, {'btn', id='time', window=wndTime}, {'chk', id='freezetime', text='freeze', onclick=toggleFreezeTime}, {'btn', id='weather', window=wndWeather}, {'btn', id='speed', window=wndGameSpeed} }, oncreate = mainWndShow, onclose = mainWndClose } When I change its does not open the panel Freeroam.. help me Error console: Download error: Invalid file (freeroam) test.png
  5. Hi, I search how to add a background image to panel Freeroam Please help me. Example:
  6. Je viens de rencontré un soucis , quand je met le skin 217 sans avoir les droit admin ( ACL ) sa le met quand même , sa ne me revoie pas au skin 0 ( CJ )
  7. Merci de ton aide , car j'ai cherché les function a mettre etc.. mais j'ai encore un peux de mal sa faire ça. Bref sinon encore merci de ton aide.
  8. Bonjour, Je souhaite faire un script , que quand un joueurs prend un skin par exemple l'id 217 ( Skin du staff ) , se fait remettre son skin en id 0. Mais que les Admin peuvent avoir ce skin. Merci d'avance.
  9. Hi guys ! I will present my server. Multi Theft Auto Fast and Furious v2.6
  10. J'ai mis le script: local 10, 5, 10 = 0, 0, 5 local 10, 5, 10 = 0, 0, 0 function attachSiren(cmd) local veh = getPedOccupiedVehicle(source) local id = getElementModel(veh) if veh == true then if id == 411 or id == 597 or id == 599 then sirene = createObject(2922, 0, 0, 0) setElementCollisionsEnabled(sirene, false) -- Désactive la collision avec la sirène attachElements (sirene, veh, sX, sY, sZ, rX, rY, rZ) -- Attache la sirène à la voiture du joueur end end end addCommandHandler("mettresiren", attachSiren) Et il y a un script error: [22:06:51] WARNING: Attach_Born/server.lua [server] is encoded in ANSI instead of UTF-8. Please convert your file to UTF-8. [22:06:51] Some files in 'Attach_Born' use deprecated functions. [22:06:51] Use the 'upgrade' command to perform a basic upgrade of resources. [22:06:51] Starting Attach_Born [22:06:51] WARNING: Script 'Attach_Born\server.lua' is not encoded in UTF-8. Loading as ANSI... [22:06:51] SCRIPT ERROR: Attach_Born\server.lua:1: '' expected near '10' [22:06:51] ERROR: Loading script failed: Attach_Born\server.lua:1: '' expected near '10'
  11. Merci beaucoup de ton aide ! je test ça dans la soiré et je redit ça
  12. Bonjour, Je recherche actuellement , comment attaché un objet a son véhicule , car j'avait eu un idée donc modifié un objet de base sur gta , en sorte de gyrophare Comme ça: Mais après l'objet modifié , j'aimerai maintenant savoir comment je fait pour l'attaché au véhicule. Et je sais qui faut relevé des position pour le mettre sur la voiture , mais comment les relevé aussi ? Merci d'avance.
  13. Je ne comprend toujours pas , le createColCuboid. J'aimerai avoir le modèle de ton script pour essaiyé de comprendre.
  14. Merci beaucoup de ton aide !, Avec volontier pour avoir un exemple. Car j'ai déjà essaiyé de faire un zone comme celle çi mais sa na pas fonctionné. Je ne comprend toujours pas comment faire pour installé le carré de la greenzone car Y'a que 2 positions, or je ne sais pas si c'est la position x, y, z, et les autre chiffre suivit. Par exemple la dessus : pirShipMusicCol = createColCuboid (1997.58,1523.16,8,6,17.66,4) moneyZoneCol = createColCuboid (1993.12, 1519.14, -100, 17.43, 54.24, 117)
  15. Bien enfaite je veux modifié sur la mini-map mettre une sorte de rectangle rouge et je sais pas comment avoir ses position , c'est pour une zone privé ou que les membre du groupe de l'ACL admin peux passé.
  16. I search how to take the position of a rectangle to the mini-map please
  17. Bonjour tout le monde. Je recherche comment prendre la position d'un rectangle pour la mini-map s'il vous plait , depuis des jours je cherche mais je n'y arrive pas auriez vous une solution s'il vous plait ? Merci d'avance
  18. hi , When do I start the script puts her to me: [2014-08-06 11:23:38] WARNING: @PedAnimSpawn/pedanim.lua:3 Bad argument @ 'setPedRotation' [Expected element at argument 1, got boolean] [2014-08-06 11:23:38] WARNING: @PedAnimSpawn/pedanim.lua:4 Bad argument @ 'setPedAnimation' [Expected element at argument 1, got boolean] function pedLoad () APed = createPed ( 83, 2353, 2143, 11 ) setTimer(setPedRotation,5000,1,APed,270 ) setTimer(setPedAnimation,5000,1,APed,"DANCING","DAN_Down_A",-1,true,true,true ) end addEventHandler ( "onResourceStart", getRootElement(), pedLoad )
  19. addCommandHandler ( "handcuff", function ( thePlayer, _, who ) if isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( thePlayer ) ), aclGetGroup ( "Police" ) ) then local target = getPlayerFromName ( who ) -- Get the player from it's name if ( target ) then -- If the player exists setPedAnimation ( target, "SHOP", "SHP_Rob_Handsup", -1, true, false, false ) -- Set his/her animation setElementFrozen ( target, true ) -- Free him/her outputChatBox ( "Player ".. getPlayerName ( target ) .." was handcuffed by ".. getPlayerName ( thePlayer ) ..".", root, 255, 241, 0 ) -- Output a global message end end ) i'm add the code : if isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( thePlayer ) ), aclGetGroup ( "Police" ) ) then but not working.. ERROR CODE : [2014-07-26 14:47:06] SCRIPT ERROR: @Handcuff/cuff.lua:2: unexpected symbol near 'if' [2014-07-26 14:47:06] ERROR: Loading script failed: @Handcuff/cuff.lua:2: unexpected symbol near 'if' [2014-07-26 14:47:06] SCRIPT ERROR: @Handcuff/release.lua:2: unexpected symbol near 'if' [2014-07-26 14:47:06] ERROR: Loading script failed: @Handcuff/release.lua:2: unexpected symbol near 'if'
  20. I want the command "/men" freeze a player with a animation handsup and with a sentence outputChatBox ("Player" .. getPlayerName (source) .. "Was handcuffed by" getPlayerName .. (source) .. "." Source, 255.241 , 0)
  21. Merci beaucoup ! En effet j'avais trouvé en remplaçant celà : outputChatBox("Vous n'êtes pas de la SAPD",source, 255,241,0) En ça : outputChatBox("Vous n'êtes pas de la SAPD",thePlayer, 255,241,0) Et ça a fonctionné. Mais je te remerci de ton aide !
  22. I have problem with my script , help me please when I started not working addEvent("freeze", true) addEventHandler("freeze", root, function (player) setPedAnimation ( source, "SHOP", "SHP_Rob_Handsup", -1, true, false, false ) setElementFrozen(player, true) outputChatBox("Player "..getPlayerName(source).."was handcuffed by "..getPlayerName(source)..".",source, 255,241,0) end) addCommandHandler ( "handcuff", (player) )
×
×
  • Create New...