Jump to content

WASSIm.

Members
  • Posts

    1,411
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by WASSIm.

  1. WASSIm.

    help blip

    thank you very much
  2. WASSIm.

    help blip

    if away of zombies its hidden zombies
  3. WASSIm.

    help blip

    its already server said!!! thx for link i fix create blip if zombie spawn but if zombie hiding not hiding blip local zombieBlips = {} addEventHandler( "onResourceStart", getResourceRootElement( getThisResource() ), function () for k, theZombie in ipairs ( getElementsByType( "ped" ) ) do if (getElementData ( theZombie, "zombie" ) == true) then if not ( zombieBlips[theZombie] ) then zombieBlips[theZombie] = createBlipAttachedTo( theZombie, 0, 1, 162, 2, 2, 100 ) setBlipVisibleDistance( zombieBlips[theZombie], 100 ) end end end end ) addEvent ( "onZombieSpawn", true ) addEventHandler ( "onZombieSpawn", root, function() for k, theZombie in ipairs ( getElementsByType( "ped" ) ) do if (getElementData ( theZombie, "zombie" ) == true) then if not ( zombieBlips[theZombie] ) then zombieBlips[theZombie] = createBlipAttachedTo( theZombie, 0, 1, 162, 2, 2, 100 ) setBlipVisibleDistance( zombieBlips[theZombie], 100 ) end end end end ) addEvent ( "onZombieWasted", true ) addEventHandler ( "onZombieWasted", root, function () if ( isElement( zombieBlips[source] ) ) then destroyElement( zombieBlips[source] ) zombieBlips[source] = nil end end )
  4. WASSIm.

    help blip

    nothing changed its like client said ! local zombieBlips = {} addEventHandler( "onResourceStart", getResourceRootElement( getThisResource() ), function () for k, theZombie in ipairs ( getElementsByType( "ped" ) ) do if (getElementData ( theZombie, "zombie" ) == true) then if not ( zombieBlips[theZombie] ) then zombieBlips[theZombie] = createBlipAttachedTo( theZombie, 0, 1, 162, 2, 2, 100 ) setBlipVisibleDistance( zombieBlips[theZombie], 100 ) end end end end ) addEvent ( "onZombieSpawn", true ) addEventHandler ( "onZombieSpawn", root, function() if (getElementData ( source, "zombie" ) == true) then if not ( zombieBlips[source] ) then zombieBlips[source] = createBlipAttachedTo( source, 0, 1, 162, 2, 2, 100 ) setBlipVisibleDistance( zombieBlips[source], 100 ) end end end ) addEvent ( "onZombieWasted", true ) addEventHandler ( "onZombieWasted", root, function () if ( isElement( zombieBlips[source] ) ) then destroyElement( zombieBlips[source] ) zombieBlips[source] = nil end end )
  5. WASSIm.

    help blip

    i change this script server said but nothing
  6. WASSIm.

    help blip

    i can see it but if start script show blip all zombies but not showing new zombie spawned and dont remove blip old zombie (wasted or destroyed)
  7. WASSIm.

    help blip

    hi guys i have problem blip zombie he is working only start script and if spawn zombie or wasted nothing local zombieBlips = {} addEventHandler( "onClientResourceStart", getResourceRootElement( getThisResource() ), function () for k, theZombie in ipairs ( getElementsByType( "ped" ) ) do if (getElementData ( theZombie, "zombie" ) == true) then if not ( zombieBlips[theZombie] ) then zombieBlips[theZombie] = createBlipAttachedTo( theZombie, 0, 1, 162, 2, 2, 100 ) end end end end ) addEvent ( "onZombieSpawn", true ) addEventHandler ( "onZombieSpawn", root, function() if (getElementData ( source, "zombie" ) == true) then if not ( zombieBlips[source] ) then zombieBlips[source] = createBlipAttachedTo( source, 0, 1, 162, 2, 2, 100 ) end end end ) addEvent ( "onZombieWasted", true ) addEventHandler ( "onZombieWasted", root, function () if ( isElement( zombieBlips[source] ) ) then destroyElement( zombieBlips[source] ) zombieBlips[source] = nil end end )
  8. slm loled balahi wasa3o belkom m3aya n7ab script hadha kima bankrob yabda kol 1h wa feha command nchof wa9te yabda wa gate1 wa gate4 itsakro mba3ad 3min mili yabda event balahi 3awnoni wa 3ayachkom function start( ) startmarker = createMarker ( 264.9, 1878.09998, -30.5, "cylinder", 1.5, 255, 0, 0, 170 ) entreterourist1 = createMarker ( 490.20001, 1995.69995, 54.5, "cylinder", 1.5, 255, 255, 0, 170 ) elevator = createObject ( 3115, 271, 1886.69995, -30.8, 0, 0,0 ) keypad1 = createObject ( 2922, 270.10001, 1864.80005, 9.3, 0, 0,90 ) keypad2 = createObject ( 2922, 282.89999, 1867.09998, 9.3, 0, 0,90 ) keypad3 = createObject ( 2922, 300.29999, 1859.09998, 8.5, 0, 0,90 ) keypad4 = createObject ( 2922, 275.20001, 1821, 8.2, 0, 0,270 ) keypad5 = createObject ( 2922, 300.29999, 1821, 8.2, 0, 0,90 ) markerkeypad1 = createMarker ( 270.10001, 1864.80005, 7.3, "cylinder", 1.5, 255, 0, 0, 170 ) --GATE7 markerkeypad2 = createMarker ( 282.89999, 1867.09998, 7.3, "cylinder", 1.5, 255, 255, 0, 170 ) --GATE6 markerkeypad3 = createMarker ( 300.29999, 1859.09998, 6.5, "cylinder", 1.5, 255, 0, 255, 170 ) --GATE5 markerkeypad4 = createMarker ( 275.20001, 1821, 6.2, "cylinder", 1.5, 0, 0, 255, 170 ) --GATE1 markerkeypad5 = createMarker ( 300.29999, 1821, 6.2, "cylinder", 1.5, 0, 255, 0, 170 ) --GATE4 gate1 = createObject ( 2951, 277.2998, 1821.69922, 6.8, 0, 0,0 ) gate3 = createObject ( 2951, 313.39999, 1842.30005, 6.8, 0, 0,0 ) gate2 = createObject ( 2951, 330.20001, 1842.30005, 6.8, 0, 0,0 ) gate4 = createObject ( 2951, 297.9, 1821.69995, 6.8, 0, 0,0 ) gate5 = createObject ( 2951, 297.70001, 1858.30005, 6.7, 0, 0,0 ) gate6 = createObject ( 2951, 283.10001, 1869.40002, 7.8, 0, 0,90 ) gate7 = createObject ( 2951, 268.89999, 1864, 7.8, 0, 0,0 ) exports.zombies:createZombie( 277.79999,1825.19995,7.8,0,0,0,0) exports.zombies:createZombie( 276.5,1825.30005,7.8,0,0,0,0) exports.zombies:createZombie( 279,1825.59998,7.8,0,0,0,0) exports.zombies:createZombie( 278.89999,1827.90002,7.7,0,0,0,0) exports.zombies:createZombie( 277.70001,1827.69995,7.7,0,0,0,0) exports.zombies:createZombie( 276.70001,1827.5,7.7,0,0,0,0) exports.zombies:createZombie( 278.60001,1829.59998,7.7,0,0,0,0) exports.zombies:createZombie( 277.39999,1829.59998,7.7,0,0,0,0) exports.zombies:createZombie( 276.29999,1829.5,7.7,0,0,0,0) exports.zombies:createZombie( 278.60001,1831.19995,7.7,0,0,0,0) exports.zombies:createZombie( 277.39999,1831.09998,7.7,0,0,0,0) exports.zombies:createZombie( 276.20001,1831.09998,7.7,0,0,0,0) exports.zombies:createZombie( 278.39999,1832.80005,7.7,0,0,0,0) exports.zombies:createZombie( 277.39999,1832.80005,7.7,0,0,0,0) exports.zombies:createZombie( 276.10001,1833,7.7,0,0,0,0) exports.zombies:createZombie( 278.29999,1834.69995,7.7,0,0,0,0) exports.zombies:createZombie( 277.39999,1834.80005,7.7,0,0,0,0) exports.zombies:createZombie( 276.20001,1835.09998,7.7,0,0,0,0) exports.zombies:createZombie( 277.89999,1836.80005,7.7,0,0,0,0) exports.zombies:createZombie( 277,1836.59998,7.7,0,0,0,0) exports.zombies:createZombie( 276.10001,1836.59998,7.7,0,0,0,0) exports.zombies:createZombie( 281.10001,1838,7.7,0,0,0,0) exports.zombies:createZombie( 281.39999,1839.30005,7.7,0,0,0,0) exports.zombies:createZombie( 285.89999,1838.90002,7.7,0,0,0,0) exports.zombies:createZombie( 286,1840.19995,7.7,0,0,0,0) exports.zombies:createZombie( 282.89999,1840.69995,7.7,0,0,0,0) exports.zombies:createZombie( 284.39999,1838.30005,7.7,0,0,0,0) exports.zombies:createZombie( 283.79999,1839.40002,7.7,0,0,0,0) exports.zombies:createZombie( 285.79999,1841.19995,7.7,0,0,0,0) exports.zombies:createZombie( 288,1838.80005,7.7,0,0,0,0) exports.zombies:createZombie( 289.39999,1840.19995,7.7,0,0,0,0) exports.zombies:createZombie( 291.10001,1838.80005,7.7,0,0,0,0) exports.zombies:createZombie( 291,1841,7.7,0,0,0,0) exports.zombies:createZombie( 291.89999,1839.90002,7.7,0,0,0,0) exports.zombies:createZombie( 296.29999,1838.59998,7.8,0,0,0,0) exports.zombies:createZombie( 297.5,1839.90002,7.8,0,0,0,0) exports.zombies:createZombie( 298.29999,1837.90002,7.8,0,0,0,0) exports.zombies:createZombie( 303.60001,1839.90002,7.7,0,0,0,0) exports.zombies:createZombie( 306.79999,1839.59998,7.7,0,0,0,0) exports.zombies:createZombie( 305.70001,1841.09998,7.7,0,0,0,0) exports.zombies:createZombie( 303.10001,1838.40002,7.7,0,0,0,0) exports.zombies:createZombie( 307.29999,1838.09998,7.7,0,0,0,0) exports.zombies:createZombie( 308.70001,1839.69995,7.7,0,0,0,0) exports.zombies:createZombie( 308.29999,1840.90002,7.7,0,0,0,0) exports.zombies:createZombie( 310.10001,1838.19995,7.7,0,0,0,0) exports.zombies:createZombie( 311.70001,1839.80005,7.8,0,0,0,0) exports.zombies:createZombie( 312.20001,1838.19995,7.8,0,0,0,0) exports.zombies:createZombie( 278.29999,1822.90002,7.8,0,0,0,0) exports.zombies:createZombie( 281.10001,1823.19995,7.7,0,0,0,0) exports.zombies:createZombie( 282.29999,1822.59998,7.8,0,0,0,0) exports.zombies:createZombie( 285,1824.69995,7.7,0,0,0,0) exports.zombies:createZombie( 282.79999,1824.5,7.7,0,0,0,0) exports.zombies:createZombie( 285.60001,1823,7.7,0,0,0,0) exports.zombies:createZombie( 313.60001,1839.69995,7.8,0,0,0,0) exports.zombies:createZombie( 314.20001,1840.90002,7.8,0,0,0,0) exports.zombies:createZombie( 314.5,1838.19995,7.8,0,0,0,0) exports.zombies:createZombie( 316.10001,1839.5,7.7,0,0,0,0) exports.zombies:createZombie( 318.10001,1838.30005,7.7,0,0,0,0) exports.zombies:createZombie( 320.10001,1841.09998,7.7,0,0,0,0) exports.zombies:createZombie( 320.79999,1838.5,7.7,0,0,0,0) exports.zombies:createZombie( 321.89999,1840.09998,7.7,0,0,0,0) exports.zombies:createZombie( 323.39999,1839,7.7,0,0,0,0) exports.zombies:createZombie( 326.60001,1840.09998,7.7,0,0,0,0) exports.zombies:createZombie( 330,1838.90002,7.8,0,0,0,0) exports.zombies:createZombie( 329.5,1840.40002,7.8,0,0,0,0) exports.zombies:createZombie( 330.5,1844.59998,7.7,0,0,0,0) exports.zombies:createZombie( 330,1847.59998,7.7,0,0,0,0) exports.zombies:createZombie( 313.70001,1847.5,7.7,0,0,0,0) exports.zombies:createZombie( 319.10001,1855.19995,7.7,0,0,0,0) exports.zombies:createZombie( 298.79999,1861.09998,8,0,0,0,0) exports.zombies:createZombie( 296.60001,1861.40002,8.1,0,0,0,0) exports.zombies:createZombie( 298.5,1864.59998,8.5,0,0,0,0) exports.zombies:createZombie( 296.60001,1865.5,8.6,0,0,0,0) exports.zombies:createZombie( 298.20001,1867,8.8,0,0,0,0) exports.zombies:createZombie( 297.29999,1868.80005,8.8,0,0,0,0) exports.zombies:createZombie( 295.5,1867.90002,8.8,0,0,0,0) exports.zombies:createZombie( 295.10001,1869.80005,8.8,0,0,0,0) exports.zombies:createZombie( 291.89999,1868.5,8.8,0,0,0,0) exports.zombies:createZombie( 291.70001,1870.59998,8.8,0,0,0,0) exports.zombies:createZombie( 288.60001,1870.59998,8.8,0,0,0,0) exports.zombies:createZombie( 288.29999,1868.90002,8.8,0,0,0,0) exports.zombies:createZombie( 292.20001,1869.40002,8.8,0,0,0,0) exports.zombies:createZombie( 289,1869.80005,8.8,0,0,0,0) exports.zombies:createZombie( 285.79999,1870.30005,8.8,0,0,0,0) exports.zombies:createZombie( 285.60001,1868.59998,8.8,0,0,0,0) exports.zombies:createZombie( 274.10001,1871.30005,8.8,0,0,0,0) exports.zombies:createZombie( 273.89999,1870.19995,8.8,0,0,0,0) exports.zombies:createZombie( 275.60001,1871.30005,8.8,0,0,0,0) exports.zombies:createZombie( 280.5,1871.19995,8.8,0,0,0,0) exports.zombies:createZombie( 279,1866.80005,8.8,0,0,0,0) exports.zombies:createZombie( 274.79999,1866,8.8,0,0,0,0) exports.zombies:createZombie( 272.89999,1865.90002,8.8,0,0,0,0) exports.zombies:createZombie( 276.60001,1865.40002,8.8,0,0,0,0) exports.zombies:createZombie( 278.20001,1861.59998,8.8,0,0,0,0) exports.zombies:createZombie( 274.70001,1861.5,8.8,0,0,0,0) exports.zombies:createZombie( 276.29999,1859.69995,9.8,0,0,0,0) exports.zombies:createZombie( 277.89999,1856,8.8,0,0,0,0) exports.zombies:createZombie( 274.29999,1856.40002,8.8,0,0,0,0) exports.zombies:createZombie( 271.79999,1856.19995,8.8,0,0,0,0) exports.zombies:createZombie( 269.39999,1854.40002,8.8,0,0,0,0) exports.zombies:createZombie( 266.39999,1854.90002,8.8,0,0,0,0) exports.zombies:createZombie( 266.20001,1857.90002,8.8,0,0,0,0) exports.zombies:createZombie( 266.29999,1860.09998,8.8,0,0,0,0) exports.zombies:createZombie( 266.60001,1862,8.8,0,0,0,0) exports.zombies:createZombie( 271.20001,1859,8.8,0,0,0,0) exports.zombies:createZombie( 271.5,1861.19995,8.8,0,0,0,0) exports.zombies:createZombie( 269.20001,1862.5,8.8,0,0,0,0) exports.zombies:createZombie( 268.79999,1866.59998,8.6,0,0,0,0) exports.zombies:createZombie( 270.60001,1881.40002,-29.5,0,0,0,0) addEventHandler ("onResoureStart",getRootElement(), start) function open_gate(hitElement) if (getElementType(hitElement) == "player") then if (getPlayerTeam ( hitElement ) and getTeamName ( getPlayerTeam ( hitElement ) ) == "Resistances") then if ( source == startmarker) then moveObject ( elevator, 30000, 271, 1886.69995, 7) elseif ( source == entreterourist1) then setElementPosition ( hitElement, 268.29999, 1890.30005, -28) -------------------------------------------------------------------------------------------------------- elseif ( source == markerkeypad2) then moveObject ( gate6,20000, 283.10001, 1869.40002, 10) elseif ( source == markerkeypad1) then moveObject ( gate7,20000, 268.89999, 1864, 10) elseif ( source == markerkeypad3) then moveObject ( gate5,20000, 297.70001, 1858.30005, 9.7) moveObject ( gate3,20000, 313.39999, 1842.30005, 9.-- s8) --> end end if (getPlayerTeam ( hitElement ) and getTeamName ( getPlayerTeam ( hitElement ) ) == "Army") then if ( source == markerkeypad4) then moveObject ( gate1,20000, 277.2998, 1821.69922, 9) moveObject ( gate2,60000, 330.20001, 1842.30005, 9) elseif ( source == markerkeypad5) then moveObject ( gate4,20000, 297.9, 1821.69995, ) moveObject ( gate2,60000, 330.20001, 1842.30005, 9) end end end end addEventHandler ("onMarkerHit",getRootElement(),open_gate)
  9. WASSIm.

    help meta

    its show me not working pls help idk where is problem > ="replace.lua" type="client" /> ="zombies.lua" type="client" /> ="groups.lua" type="client" /> src="data/287.txd">> src="data/287.dff">> src="data/hydra.txd">> src="data/hydra.dff">> src="data/hunter.txd">> src="data/hunter.dff">> src="data/cargobob.txd">> src="data/cargobob.dff">> src="data/patriot.dff">> src="data/raindanc.txd">> src="data/raindanc.dff">> src="data/ssparrow.txd">> src="data/ssparrow.dff">> src="groups/anonymous.txd"/>> src="groups/anonymous.dff"/>> src="groups/bikdrug.txd"/>> src="groups/bikdrug.dff"/>> src="zombies/9.txd"/>> src="zombies/13.txd"/>> src="zombies/22.txd"/>> src="zombies/56.txd"/>> src="zombies/67.txd"/>> src="zombies/68.txd"/>> src="zombies/69.txd"/>> src="zombies/70.txd"/>> src="zombies/84.txd"/>> src="zombies/92.txd"/>> src="zombies/97.txd"/>> src="zombies/105.txd"/>> src="zombies/107.txd"/>> src="zombies/108.txd"/>> src="zombies/111.txd"/>> src="zombies/126.txd"/>> src="zombies/127.txd"/>> src="zombies/128.txd"/>> src="zombies/152.txd"/>> src="zombies/162.txd"/>> src="zombies/167.txd"/>> src="zombies/188.txd"/>> src="zombies/192.txd"/>> src="zombies/195.txd"/>> src="zombies/206.txd"/>> src="zombies/209.txd"/>> src="zombies/212.txd"/>> src="zombies/229.txd"/>> src="zombies/230.txd"/>> src="zombies/258.txd"/>> src="zombies/264.txd"/>> src="zombies/274.txd"/>> src="zombies/277.txd"/>> src="zombies/280.txd"/>>>
  10. you need that images for create like it !
  11. this is ready to put into a mta server, https://www.dropbox.com/s/gus17s7gk2gj4td/panamera.rar but are you fixing the texture for it or using as an example? because I have a LOT of cars that do this and you couldn't fix all of them... if you want can clean all cars mod you need edit script yourself
  12. g_Root = getRootElement() g_ResRoot = getResourceRootElement(getThisResource()) g_PlayerData = {} g_VehicleData = {} local chatTime = {} local lastChatMessage = {} g_ArmedVehicles = { [425] = true, [447] = true, [520] = true, [430] = true, [464] = true, [432] = true } g_Trailers = { [606] = true, [607] = true, [610] = true, [590] = true, [569] = true, [611] = true, [584] = true, [608] = true, [435] = true, [450] = true, [591] = true } g_RPCFunctions = { addPedClothes = { option = 'clothes', descr = 'Modifying clothes' }, addVehicleUpgrade = { option = 'upgrades', descr = 'Adding/removing upgrades' }, fadeVehiclePassengersCamera = true, fixVehicle = { option = 'repair', descr = 'Repairing vehicles' }, giveMeVehicles = { option = 'createvehicle', descr = 'Creating vehicles' }, giveMeWeapon = { option = 'weapons.enabled', descr = 'Getting weapons' }, givePedJetPack = { option = 'jetpack', descr = 'Getting a jetpack' }, killPed = { option = 'kill', descr = 'Killing yourself' }, removePedClothes = { option = 'clothes', descr = 'Modifying clothes' }, removePedFromVehicle = true, removePedJetPack = { option = 'jetpack', descr = 'Removing a jetpack' }, removeVehicleUpgrade = { option = 'upgrades', descr = 'Adding/removing upgrades' }, setElementAlpha = { option = 'alpha', descr = 'Changing your alpha' }, setElementPosition = true, setElementInterior = true, setMyGameSpeed = { option = 'gamespeed.enabled', descr = 'Setting game speed' }, setMySkin = { option = 'setskin', descr = 'Setting skin' }, setPedAnimation = { option = 'anim', descr = 'Setting an animation' }, setPedFightingStyle = { option = 'setstyle', descr = 'Setting fighting style' }, setPedGravity = { option = 'gravity.enabled', descr = 'Setting gravity' }, setPedStat = { option = 'stats', descr = 'Changing stats' }, setTime = { option = 'time.set', descr = 'Changing time' }, setTimeFrozen = { option = 'time.freeze', descr = 'Freezing time' }, setVehicleColor = true, setVehicleHeadLightColor = true, setVehicleOverrideLights = { option = 'lights', descr = 'Forcing lights' }, setVehiclePaintjob = { option = 'paintjob', descr = 'Applying paintjobs' }, setVehicleRotation = true, setWeather = { option = 'weather', descr = 'Setting weather' }, spawnMe = true, warpMe = { option = 'warp', descr = 'Warping' } } g_OptionDefaults = { alpha = true, anim = true, clothes = true, createvehicle = true, gamespeed = { enabled = true, min = 0.0, max = 3 }, gravity = { enabled = true, min = 0, max = 0.1 }, jetpack = true, kill = true, lights = true, paintjob = true, repair = true, setskin = true, setstyle = true, spawnmaponstart = true, spawnmapondeath = true, stats = true, time = { set = true, freeze = true }, upgrades = true, warp = true, weapons = { enabled = true, vehiclesenabled = true, disallowed = {} }, weather = true, welcometextonstart = true, vehicles = { maxidletime = 60000, idleexplode = true, maxperplayer = 2, disallowed = {} } } function getOption(optionName) local option = get(optionName:gsub('%.', '/')) if option then if option == 'true' then option = true elseif option == 'false' then option = false end return option end option = g_OptionDefaults for i,part in ipairs(optionName:split('.')) do option = option[part] end return option end addEventHandler('onResourceStart', g_ResRoot, function() table.each(getElementsByType('player'), joinHandler) end ) function joinHandler(player) if not player then player = source end local r, g, b = math.random(50, 255), math.random(50, 255), math.random(50, 255) setPlayerNametagColor(player, r, g, b) g_PlayerData[player] = { vehicles = {} } g_PlayerData[player].blip = createBlipAttachedTo(player, 0, 2, r, g, b) if g_FrozenTime then clientCall(player, 'setTimeFrozen', true, g_FrozenTime[1], g_FrozenTime[2], g_FrozenWeather) end if getOption('welcometextonstart') then outputChatBox('Welcome to Freeroam', player, 0, 255, 0) outputChatBox('Press F1 to show/hide controls', player, 0, 255, 0) end end addEventHandler('onPlayerJoin', g_Root, joinHandler) addEvent('onLoadedAtClient', true) addEventHandler('onLoadedAtClient', g_ResRoot, function(player) if getOption('spawnmaponstart') and isPedDead(player) then clientCall(player, 'showWelcomeMap') end end, false ) addEventHandler('onPlayerWasted', g_Root, function() if not getOption('spawnmapondeath') then return end local player = source setTimer( function() if isPedDead(player) then clientCall(player, 'showMap') end end, 2000, 1 ) end ) addEvent('onClothesInit', true) addEventHandler('onClothesInit', g_Root, function() local result = {} local texture, model -- get all clothes result.allClothes = {} local typeGroup, index for type=0,17 do typeGroup = {'group', type = type, name = getClothesTypeName(type), children = {}} table.insert(result.allClothes, typeGroup) index = 0 texture, model = getClothesByTypeIndex(type, index) while texture do table.insert(typeGroup.children, {id = index, texture = texture, model = model}) index = index + 1 texture, model = getClothesByTypeIndex(type, index) end end -- get current player clothes { type = {texture=texture, model=model} } result.playerClothes = {} for type=0,17 do texture, model = getPedClothes(source, type) if texture then result.playerClothes[type] = {texture = texture, model = model} end end triggerClientEvent(source, 'onClientClothesInit', source, result) end ) addEvent('onPlayerGravInit', true) addEventHandler('onPlayerGravInit', g_Root, function() triggerClientEvent('onClientPlayerGravInit', source, getPedGravity(source)) end ) function setMySkin(skinid) if isPedDead(source) then local x, y, z = getElementPosition(source) if isPedTerminated(source) then x = 0 y = 0 z = 3 end local r = getPedRotation(source) local interior = getElementInterior(source) spawnPlayer(source, x, y, z, r, skinid) setElementInterior(source, interior) setCameraInterior(source, interior) else setElementModel(source, skinid) setElementHealth(source, 100) end setCameraTarget(source, source) setCameraInterior(source, getElementInterior(source)) end function spawnMe(x, y, z) if not x then x, y, z = getElementPosition(source) end if isPedTerminated(source) then repeat until spawnPlayer(source, x, y, z, 0, math.random(9, 288)) else spawnPlayer(source, x, y, z, 0, getPedSkin(source)) end setCameraTarget(source, source) setCameraInterior(source, getElementInterior(source)) end function warpMe(targetPlayer)
  13. WASSIm.

    help

    this is full code. really this old script interior and i edit for make script spawn car just get some code
  14. WASSIm.

    help

    send you the script ?
  15. WASSIm.

    help

    hi all i have problem local theVehicleID = {} local intVehicles = getVehicles () function vehicles(hitElement, mathchingDimension) if (theVehicleID[source]) then local vehicleID = theVehicleID[source] if (seat == 0) then if not (( getPlayerTeam( thePlayer ) ) and ( getTeamName( getPlayerTeam( thePlayer ) ) == "STAFF" ) or ( getTeamName( getPlayerTeam( thePlayer ) ) == intVehicles[vehicleID][10] ) or (getElementData(source, "gang")) and (getElementData(source, "gang")) == intVehicles[vehicleID][11]) then cancelEvent() exports.dxhelp:createNewHelpMessageForPlayer(thePlayer,"Only "..exports.server:getPlayerGroupName(source).." can enter this vehicle", 255, 0, 0) end end end end for ID=1,#intVehicles do local x, y, z, rx, ry, rz, int, dim, id = intVehicles[ID][1], intVehicles[ID][2], intVehicles[ID][3], intVehicles[ID][4], intVehicles[ID][5], intVehicles[ID][6], intVehicles[ID][7], intVehicles[ID][8], intVehicles[ID][9] local theVehicle = createVehicle ( id, x, y, z, rx, ry, rz ) setElementRotation(theVehicle, rx, ry, rz) setElementInterior(theVehicle, int, x, y, z) setElementDimension(theVehicle, dim) theVehicleID[theVehicles] = ID addEventHandler("OnVehicleEnter", theVehicle, vehicles) end local intVehicles = { {1265.599609375, -1611.8994140625, 14.699999809265, 0, 0, 1227.14, -1616.8994140625, 74.800003051758, 272.67657470703, 0, 0, "SWAT Team", "SWAT"}, --SWAT BASE {2548.69995117,2839.19995117,28.10000038, 0, 0, 0, 0, 0, 488, "STAFF", "STAFF"}, -- SWAT BASE } function getVehicles () return intVehicles end
  16. give me link download this car
  17. WASSIm.

    Help hud

    i make script new hud i want make function like hud normally exm if use that setPlayerHQHudVisible(localPlayer, "weapon", false) hide weapon icon in new hud
  18. 7ot hadhi fi 3odh ili fi wast > fr_server.lua g_Root = getRootElement() g_ResRoot = getResourceRootElement(getThisResource()) g_PlayerData = {} g_VehicleData = {} local chatTime = {} local lastChatMessage = {} g_ArmedVehicles = { [425] = true, [447] = true, [520] = true, [430] = true, [464] = true, [432] = true } g_Trailers = { [606] = true, [607] = true, [610] = true, [590] = true, [569] = true, [611] = true, [584] = true, [608] = true, [435] = true, [450] = true, [591] = true } g_RPCFunctions = { addPedClothes = { option = 'clothes', descr = 'Modifying clothes' }, addVehicleUpgrade = { option = 'upgrades', descr = 'Adding/removing upgrades' }, fadeVehiclePassengersCamera = true, fixVehicle = { option = 'repair', descr = 'Repairing vehicles' }, giveMeVehicles = { option = 'createvehicle', descr = 'Creating vehicles' }, giveMeWeapon = { option = 'weapons.enabled', descr = 'Getting weapons' }, givePedJetPack = { option = 'jetpack', descr = 'Getting a jetpack' }, killPed = { option = 'kill', descr = 'Killing yourself' }, removePedClothes = { option = 'clothes', descr = 'Modifying clothes' }, removePedFromVehicle = true, removePedJetPack = { option = 'jetpack', descr = 'Removing a jetpack' }, removeVehicleUpgrade = { option = 'upgrades', descr = 'Adding/removing upgrades' }, setElementAlpha = { option = 'alpha', descr = 'Changing your alpha' }, setElementPosition = true, setElementInterior = true, setMyGameSpeed = { option = 'gamespeed.enabled', descr = 'Setting game speed' }, setMySkin = { option = 'setskin', descr = 'Setting skin' }, setPedAnimation = { option = 'anim', descr = 'Setting an animation' }, setPedFightingStyle = { option = 'setstyle', descr = 'Setting fighting style' }, setPedGravity = { option = 'gravity.enabled', descr = 'Setting gravity' }, setPedStat = { option = 'stats', descr = 'Changing stats' }, setTime = { option = 'time.set', descr = 'Changing time' }, setTimeFrozen = { option = 'time.freeze', descr = 'Freezing time' }, setVehicleColor = true, setVehicleHeadLightColor = true, setVehicleOverrideLights = { option = 'lights', descr = 'Forcing lights' }, setVehiclePaintjob = { option = 'paintjob', descr = 'Applying paintjobs' }, setVehicleRotation = true, setWeather = { option = 'weather', descr = 'Setting weather' }, spawnMe = true, warpMe = { option = 'warp', descr = 'Warping' } } g_OptionDefaults = { alpha = true, anim = true, clothes = true, createvehicle = true, gamespeed = { enabled = true, min = 0.0, max = 3 }, gravity = { enabled = true, min = 0, max = 0.1 }, jetpack = true, kill = true, lights = true, paintjob = true, repair = true, setskin = true, setstyle = true, spawnmaponstart = true, spawnmapondeath = true, stats = true, time = { set = true, freeze = true }, upgrades = true, warp = true, weapons = { enabled = true, vehiclesenabled = true, disallowed = {} }, weather = true, welcometextonstart = true, vehicles = { maxidletime = 60000, idleexplode = true, maxperplayer = 2, disallowed = {} } } function getOption(optionName) local option = get(optionName:gsub('%.', '/')) if option then if option == 'true' then option = true elseif option == 'false' then option = false end return option end option = g_OptionDefaults for i,part in ipairs(optionName:split('.')) do option = option[part] end return option end addEventHandler('onResourceStart', g_ResRoot, function() table.each(getElementsByType('player'), joinHandler) end ) function joinHandler(player) if not player then player = source end local r, g, b = math.random(50, 255), math.random(50, 255), math.random(50, 255) setPlayerNametagColor(player, r, g, b) g_PlayerData[player] = { vehicles = {} } g_PlayerData[player].blip = createBlipAttachedTo(player, 0, 2, r, g, b) if g_FrozenTime then clientCall(player, 'setTimeFrozen', true, g_FrozenTime[1], g_FrozenTime[2], g_FrozenWeather) end if getOption('welcometextonstart') then outputChatBox('Welcome to Freeroam', player, 0, 255, 0) outputChatBox('Press F1 to show/hide controls', player, 0, 255, 0) end end addEventHandler('onPlayerJoin', g_Root, joinHandler) addEvent('onLoadedAtClient', true) addEventHandler('onLoadedAtClient', g_ResRoot, function(player) if getOption('spawnmaponstart') and isPedDead(player) then clientCall(player, 'showWelcomeMap') end end, false ) addEventHandler('onPlayerWasted', g_Root, function() if not getOption('spawnmapondeath') then return end local player = source setTimer( function() if isPedDead(player) then clientCall(player, 'showMap') end end, 2000, 1 ) end ) addEvent('onClothesInit', true) addEventHandler('onClothesInit', g_Root, function() local result = {} local texture, model -- get all clothes result.allClothes = {} local typeGroup, index for type=0,17 do typeGroup = {'group', type = type, name = getClothesTypeName(type), children = {}} table.insert(result.allClothes, typeGroup) index = 0 texture, model = getClothesByTypeIndex(type, index) while texture do table.insert(typeGroup.children, {id = index, texture = texture, model = model}) index = index + 1 texture, model = getClothesByTypeIndex(type, index) end end -- get current player clothes { type = {texture=texture, model=model} } result.playerClothes = {} for type=0,17 do texture, model = getPedClothes(source, type) if texture then result.playerClothes[type] = {texture = texture, model = model} end end triggerClientEvent(source, 'onClientClothesInit', source, result) end ) addEvent('onPlayerGravInit', true) addEventHandler('onPlayerGravInit', g_Root, function() triggerClientEvent('onClientPlayerGravInit', source, getPedGravity(source)) end ) function setMySkin(skinid) if isPedDead(source) then local x, y, z = getElementPosition(source) if isPedTerminated(source) then x = 0 y = 0 z = 3 end local r = getPedRotation(source) local interior = getElementInterior(source) spawnPlayer(source, x, y, z, r, skinid) setElementInterior(source, interior) setCameraInterior(source, interior) else setElementModel(source, skinid) setElementHealth(source, 100) end setCameraTarget(source, source) setCameraInterior(source, getElementInterior(source)) end function spawnMe(x, y, z) if not x then x, y, z = getElementPosition(source) end if isPedTerminated(source) then repeat until spawnPlayer(source, x, y, z, 0, math.random(9, 288)) else spawnPlayer(source, x, y, z, 0, getPedSkin(source)) end setCameraTarget(source, source) setCameraInterior(source, getElementInterior(source)) end function warpMe(targetPlayer)
  19. 7ot hadhi fi 3odh ili fi wast > fr_server.lua g_Root = getRootElement() g_ResRoot = getResourceRootElement(getThisResource()) g_PlayerData = {} g_VehicleData = {} local chatTime = {} local lastChatMessage = {} g_ArmedVehicles = { [425] = true, [447] = true, [520] = true, [430] = true, [464] = true, [432] = true } g_Trailers = { [606] = true, [607] = true, [610] = true, [590] = true, [569] = true, [611] = true, [584] = true, [608] = true, [435] = true, [450] = true, [591] = true } g_RPCFunctions = { addPedClothes = { option = 'clothes', descr = 'Modifying clothes' }, addVehicleUpgrade = { option = 'upgrades', descr = 'Adding/removing upgrades' }, fadeVehiclePassengersCamera = true, fixVehicle = { option = 'repair', descr = 'Repairing vehicles' }, giveMeVehicles = { option = 'createvehicle', descr = 'Creating vehicles' }, giveMeWeapon = { option = 'weapons.enabled', descr = 'Getting weapons' }, givePedJetPack = { option = 'jetpack', descr = 'Getting a jetpack' }, killPed = { option = 'kill', descr = 'Killing yourself' }, removePedClothes = { option = 'clothes', descr = 'Modifying clothes' }, removePedFromVehicle = true, removePedJetPack = { option = 'jetpack', descr = 'Removing a jetpack' }, removeVehicleUpgrade = { option = 'upgrades', descr = 'Adding/removing upgrades' }, setElementAlpha = { option = 'alpha', descr = 'Changing your alpha' }, setElementPosition = true, setElementInterior = true, setMyGameSpeed = { option = 'gamespeed.enabled', descr = 'Setting game speed' }, setMySkin = { option = 'setskin', descr = 'Setting skin' }, setPedAnimation = { option = 'anim', descr = 'Setting an animation' }, setPedFightingStyle = { option = 'setstyle', descr = 'Setting fighting style' }, setPedGravity = { option = 'gravity.enabled', descr = 'Setting gravity' }, setPedStat = { option = 'stats', descr = 'Changing stats' }, setTime = { option = 'time.set', descr = 'Changing time' }, setTimeFrozen = { option = 'time.freeze', descr = 'Freezing time' }, setVehicleColor = true, setVehicleHeadLightColor = true, setVehicleOverrideLights = { option = 'lights', descr = 'Forcing lights' }, setVehiclePaintjob = { option = 'paintjob', descr = 'Applying paintjobs' }, setVehicleRotation = true, setWeather = { option = 'weather', descr = 'Setting weather' }, spawnMe = true, warpMe = { option = 'warp', descr = 'Warping' } } g_OptionDefaults = { alpha = true, anim = true, clothes = true, createvehicle = true, gamespeed = { enabled = true, min = 0.0, max = 3 }, gravity = { enabled = true, min = 0, max = 0.1 }, jetpack = true, kill = true, lights = true, paintjob = true, repair = true, setskin = true, setstyle = true, spawnmaponstart = true, spawnmapondeath = true, stats = true, time = { set = true, freeze = true }, upgrades = true, warp = true, weapons = { enabled = true, vehiclesenabled = true, disallowed = {} }, weather = true, welcometextonstart = true, vehicles = { maxidletime = 60000, idleexplode = true, maxperplayer = 2, disallowed = {} } } function getOption(optionName) local option = get(optionName:gsub('%.', '/')) if option then if option == 'true' then option = true elseif option == 'false' then option = false end return option end option = g_OptionDefaults for i,part in ipairs(optionName:split('.')) do option = option[part] end return option end addEventHandler('onResourceStart', g_ResRoot, function() table.each(getElementsByType('player'), joinHandler) end ) function joinHandler(player) if not player then player = source end local r, g, b = math.random(50, 255), math.random(50, 255), math.random(50, 255) setPlayerNametagColor(player, r, g, b) g_PlayerData[player] = { vehicles = {} } g_PlayerData[player].blip = createBlipAttachedTo(player, 0, 2, r, g, b) if g_FrozenTime then clientCall(player, 'setTimeFrozen', true, g_FrozenTime[1], g_FrozenTime[2], g_FrozenWeather) end if getOption('welcometextonstart') then outputChatBox('Welcome to Freeroam', player, 0, 255, 0) outputChatBox('Press F1 to show/hide controls', player, 0, 255, 0) end end addEventHandler('onPlayerJoin', g_Root, joinHandler) addEvent('onLoadedAtClient', true) addEventHandler('onLoadedAtClient', g_ResRoot, function(player) if getOption('spawnmaponstart') and isPedDead(player) then clientCall(player, 'showWelcomeMap') end end, false ) addEventHandler('onPlayerWasted', g_Root, function() if not getOption('spawnmapondeath') then return end local player = source setTimer( function() if isPedDead(player) then clientCall(player, 'showMap') end end, 2000, 1 ) end ) addEvent('onClothesInit', true) addEventHandler('onClothesInit', g_Root, function() local result = {} local texture, model -- get all clothes result.allClothes = {} local typeGroup, index for type=0,17 do typeGroup = {'group', type = type, name = getClothesTypeName(type), children = {}} table.insert(result.allClothes, typeGroup) index = 0 texture, model = getClothesByTypeIndex(type, index) while texture do table.insert(typeGroup.children, {id = index, texture = texture, model = model}) index = index + 1 texture, model = getClothesByTypeIndex(type, index) end end -- get current player clothes { type = {texture=texture, model=model} } result.playerClothes = {} for type=0,17 do texture, model = getPedClothes(source, type) if texture then result.playerClothes[type] = {texture = texture, model = model} end end triggerClientEvent(source, 'onClientClothesInit', source, result) end ) addEvent('onPlayerGravInit', true) addEventHandler('onPlayerGravInit', g_Root, function() triggerClientEvent('onClientPlayerGravInit', source, getPedGravity(source)) end ) function setMySkin(skinid) if isPedDead(source) then local x, y, z = getElementPosition(source) if isPedTerminated(source) then x = 0 y = 0 z = 3 end local r = getPedRotation(source) local interior = getElementInterior(source) spawnPlayer(source, x, y, z, r, skinid) setElementInterior(source, interior) setCameraInterior(source, interior) else setElementModel(source, skinid) setElementHealth(source, 100) end setCameraTarget(source, source) setCameraInterior(source, getElementInterior(source)) end function spawnMe(x, y, z) if not x then x, y, z = getElementPosition(source) end if isPedTerminated(source) then repeat until spawnPlayer(source, x, y, z, 0, math.random(9, 288)) else spawnPlayer(source, x, y, z, 0, getPedSkin(source)) end setCameraTarget(source, source) setCameraInterior(source, getElementInterior(source)) end function warpMe(targetPlayer)
  20. If it will clean a mod car (one that I modded into the server), then definitely !!!!!! what do you want ?
  21. https://community.multitheftauto.com/index.php?p= ... ls&id=7281 original: https://community.multitheftauto.com/index.php?p= ... ls&id=7255 DONE
×
×
  • Create New...