Jump to content

Bilal135

Members
  • Posts

    843
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Bilal135

  1. Really weird problem. Debugscript shows an error, 'Unfinished string near Welcome to Ultimatium Freeroam'. GUIEditor.memo[1] = guiCreateMemo(0.46, 0.10, 0.48, 0.81, "Welcome to Ultimatium English Freeroam! \n \nBefore getting started, all new players must go through the rules listed below, created to keepthe server clean of disturbers. \n \n#1. Speak English only. As this is an English server, we can't tolerate any other language in public chats. However, if you wish to talk to someone in your own language, then you may use private messages. \nSyntax: /pm [player name] [message]. \n \n#2. Do not disturb staff members. Pretty straight forward rule. Do not roam around / make noises near busy staff members, which can be identified by 'L1', 'L2', 'L3', 'L4' \nor 'L5' icon on their names. \n \n#3. Do not insult or provoke anyone. We tend to keep a nice atmosphere here. Any insult against any player will not be tolerated, no matter what. Some insults inclue, 'Bitch', 'Mother:Oer, ':Oer', 'Asshole' etc. \n \n#4. No racism. Calling someone names or anything basede on someone's real life complexion is strictly forbidden. In extreme cases, you might get a ban for it. \n \n#5. Do not lie to staff members. If any staff member questions you about any server relat\nreport (not personal), you must answer honestly. If you lie, you'll eventually be caught and punished. \n \n#6. Do not insult the server. Non-constructive criticism against the server can get you permanently banned in extreme cases. \n \nThat's it for now. Enjoy playing!", true, GUIEditor.window[1])
  2. Everything was working fine until my PC broke, and then I had to get it fixed plus a new fresh windows. The C drive was completely reset and D and E files were still there (including GTA SA and MTA SA). I see this X sign on volume icon on the bottom right which says "No speakers or headphones plugged in". When I try running GTA SA, it says "GTA SA can not find audio card installed" and when I try to run MTA SA, it says "MTA SA was not installed properly, please reinstall." Any help regarding this issue? Thanks.
  3. Project Redivivus or MTA VC or MTA GTA 3 got no players at all. Maybe you guys should consider promoting it somewhere on forums.
  4. I am selling a clash of clans account for a cheap price. Send me a PM. Level: 70 Town hall: 8
  5. freeroam/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' }, setMyPos = true } 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() if getOption('spawnmaponstart') and isPedDead(client) then clientCall(client, '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', resourceRoot, 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(client, type) if texture then result.playerClothes[type] = {texture = texture, model = model} end end triggerClientEvent(client, 'onClientClothesInit', resourceRoot, result) end ) addEvent('onPlayerGravInit', true) addEventHandler('onPlayerGravInit', resourceRoot, function() triggerClientEvent(root, 'onClientPlayerGravInit', resourceRoot, getPedGravity(client)) 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
  6. I'm not sure what you are trying to say but if you mean that you want to be teleported into the car you just spawned using the F1 menu (freeroam resource), then you will have to edit the freeroam resource, and add this on the spawn button click. warpPedIntoVehicle(player, vehicle) You will need to modify the variables - player and vehicle to the ones in freeroam resource. EDIT: Oh just noticed N3xt posted before me, but I'll leave my post as well
  7. I already figured out my mistake as soon as I posted it. Thanks for correcting me tho
  8. server.lua (untested): function saveVehicleOnWasted() if not isPedInVehicle(source) then return end vehicle = getPedOccupiedVehicle(source) end addEventHandler("onPlayerWasted", getRootElement(), saveVehicleOnWasted) function warpPedToVehicle() if not vehicle then return end warpPedIntoVehicle(source, vehicle) end addEventHandler("onPlayerSpawn", getRootElement(), warpPedToVehicle) meta.xml: <meta> <info author="Donut" description="Save vehicle on wasted and warp player into it on spawn" version="1.0.0"/> <script src="server.lua" type="server"/> </meta>
  9. What do you mean by 'nope'?
  10. Okay guys, another question. That gui ^^ is different than MTA's default ones. The question is, is that pure DX or some script that auto-converts / makes it like that?
  11. Take a look at SAUR's login panel: It uses gui elements like button and editbox etc, but there is no gui window. It means that it is possible but I dont know how to make it work.
  12. Is it possible to set gui's alpha to 0 but to keep other things like button visible? I used guieditor and it will change everything's alpha to 0 if I set the window's alpha to 0.
  13. engineLoadTXD engineLoadDFF engineImportTXD engineReplaceModel getPlayerFromName
  14. Here is what you're looking for: https://community.multitheftauto.com/in ... s&id=10752. Download it and learn from it
  15. This is not a request board. Please post your bugged script and we might be able to help you with it.
  16. "Prolly" my ass, that's what happens when he wants to act smart lol Do I even know you?
  17. Bilal135

    Pedmaker

    ped = createPed(id, x, y, z) Change it to: ped = createPed(tonumber(id), x, y, z)
  18. Put this in your script. setTimer( function() --restarting this resource every 15 minutes restartResource(getThisResource()) end, 900000, 0) https://wiki.multitheftauto.com/wiki/RestartResource Next time read the wiki before asking here.
  19. function increaseAdminHP() local newHealth = getElementHealth(source) +5 setElementHealth(source, newHealth) end function timerIncreaseHP() local acc = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..acc, aclGetGroup("Admin")) then setTimer(increaseAdminHP, 5000, 0) end
×
×
  • Create New...