Jump to content

Finijumper

Members
  • Posts

    68
  • Joined

  • Last visited

Everything posted by Finijumper

  1. Lo siento, me confundí. En vez de Hostinger quería decir Haphost (que te da una vps gratis). EDITO: Ya lo he configurado correctamente
  2. Gracias. EDITO: Sigo sin entender como hacer que el servidor esté todo el día activo y con los resources que ya tengo en el pc. El problema es que no se como subirlo al vps.
  3. Estoy interesado en este Hosting. Como podría contactar contigo?
  4. Ahora mismo estoy usando Haphost, pero no se como configurarlo con mis resources y todo
  5. Finijumper

    Skin Shader

    "..pueden tener el mismo skin pero distinto..". Explícate. supongo que se referirá al mismo número de skin pero visto de otra forma :-/
  6. Mi ordenador se ha petado -.- Voy a tardar un tiempo en poderos comentar algo...
  7. Ok, gracias al los 2 A ver si lo consigo y os cuento.
  8. Con todo el respeto pero, llegaste a casa? xP
  9. Y eso lo tengo que poner en el client o en el server?
  10. Nadie conoce algún otro host gratis? P.D: No funciona comentar por Quick reply, hacerlo por quote.
  11. La de haphost es scam? Yo me he registrado hace como 2 días y me dice que para tener el vps tengo que esperar a que un administrador me verifique la cuenta
  12. No se si el script lo hará, pero yo me refería a que por ejemplo de cuando tu te bajas del vehículo, la persona que sube a el cuando está dentro no se puede morir aunque lo disparen y el coche también sea indestructible.
  13. Tengo en mi servidor scripts de handling editor, para saltar dentro del coche y para impulsar el coche, pero me gustaría que solo los pudieran usar los administradores. Como podría hacerlo?
  14. Hola comunidad, Me gustaría tener en mi servidor un script que permitiera a los administradores con una tecla impulsar sus vehículos para arriba (como si saltasen) y que con otra tecla que se impulsaran hacia delante. Otro que el vehículo que "spawnee" el administrador fuera indestructible, y que la gente de su interior no muriera. Creo que no están en la comunidad Al menos no los he encontrado yo. Espero que alguien me pueda ayudar.
  15. Muchas gracias Funciona a la perfección, aunque en la consola del servidor (antes ya lo decía) cada vez que "spawneo" una rampa me dice esto: ERROR: Client triggered serverside event vehicleramps_PlayerSpawnedRamp, but event is not added serverside Es un poco molesto
  16. Gracias, pero como soy muy novato en todo eso de la programación en lua no se donde ni como ponerlo Alguna ayudita?
  17. Tengo un script que con los números 1, 2 y 3 te crea rampas delante tuyo, lo que quiero es que al cabo de 5 segundos se borren automáticamente. Solo tiene un archivo .lua con el código que os dejo más abajo y el meta.xml local gRoot = getRootElement() local g_Root = gRoot local gMe = getLocalPlayer() local gResourceRoot = getResourceRootElement(getThisResource()) local theRamps = {} addEvent ( "vehicleramps_SpawnRamp", true ) addEventHandler ( "vehicleramps_SpawnRamp", gRoot, function ( mode, returnedData ) --outputChatBox ( "A RAMP WAS MADE BY " .. getPlayerName(source) ) if ( theRamps[source] ) then --outputChatBox ( "Destroying the ramps table" ) destroyElement(theRamps[source]) theRamps[source] = false end local parentUnit = createElement("myRamps" .. getPlayerID(source)) theRamps[source] = parentUnit if ( mode == "1" ) then if ( #returnedData == 6 ) then spawnRamp ( source, returnedData[1], returnedData[2], returnedData[3], returnedData[4], returnedData[5], returnedData[6], 1632 ) end elseif ( mode == "1s" ) then spawnRamp ( source, returnedData[1], returnedData[2], returnedData[3], 0, 0, 0, 1632 ) spawnRamp ( source, returnedData[4], returnedData[5], returnedData[6], 0, 0, 90, 1632 ) spawnRamp ( source, returnedData[7], returnedData[8], returnedData[9], 0, 0, 180, 1632 ) spawnRamp ( source, returnedData[10], returnedData[11], returnedData[12], 0, 0, 270, 1632 ) elseif ( mode == "2" ) then if ( #returnedData == 9 ) then spawnRamp ( source, returnedData[1], returnedData[2], returnedData[3], returnedData[7], returnedData[8], returnedData[9], 1632 ) spawnRamp ( source, returnedData[4], returnedData[5], returnedData[6], returnedData[7], returnedData[8], returnedData[9], 1632 ) end elseif ( mode == "3" ) then if ( #returnedData == 9 ) then local thisRamp = spawnRamp ( source, returnedData[1], returnedData[2], returnedData[3], returnedData[7], returnedData[8], returnedData[9], 1632 ) local rx, ry, rz = getObjectRotation ( thisRamp ) spawnRamp ( source, returnedData[4], returnedData[5], returnedData[6], rx + 22, returnedData[8], returnedData[9], 1632 ) end elseif ( mode == "5" ) then if ( #returnedData == 6 ) then spawnRamp ( source, returnedData[1], returnedData[2], returnedData[3], 0, 0, returnedData[6], 13592 ) end elseif ( mode == "6" ) then if ( #returnedData == 6 ) then spawnRamp ( source, returnedData[1], returnedData[2], returnedData[3], 0, 0, returnedData[6], 13641 ) end elseif ( mode == "custom" ) then if ( #returnedData == 7 ) then spawnRamp ( source, returnedData[1], returnedData[2], returnedData[3], 0, 0, returnedData[6], returnedData[7] ) end end end ) addEventHandler ( "onClientResourceStart", gResourceRoot, function(name) --outputChatBox ( "Client Script Started" ) outputChatBox ( "Client Script Started" ) bindKey ( "1", "down", workOutRamps, 1 ) bindKey ( "2", "down", workOutRamps, 2 ) bindKey ( "3", "down", workOutRamps, 3 ) bindKey ( "4", "down", workOutRamps, 5 ) bindKey ( "5", "down", workOutRamps, 6 ) end) function workOutRamps(mode) local playerVehicle = getPlayerOccupiedVehicle(getLocalPlayer()) if ( playerVehicle ) then local PV = getVehicleController(playerVehicle) if ( PV ~= getLocalPlayer() ) then outputChatBox ( "Your not the driver!" ) return end if ( theRamps[gMe] ) then --outputChatBox ( "Destroying the ramps table" ) destroyElement(theRamps[gMe]) theRamps[gMe] = false end local parentUnit = createElement("myRamps" .. getPlayerID(gMe)) theRamps[gMe] = parentUnit local distance = 20 local returnedData = {} local vehX, vehY, vZ = getElementPosition(playerVehicle) local rotX, rotY, rotZ = getVehicleRotation(playerVehicle) if ( mode == "1" ) then if ( getKeyState("lshift") ) then local ramp1X, ramp1Y = vehX + distance*math.cos(math.rad(rotZ+90)), vehY + distance*math.sin(math.rad(rotZ+130)) local ramp1Z = getGroundForCoords(ramp1X, ramp1Y, vZ) local ramp2X, ramp2Y = ramp1X+5.5, ramp1Y --vehX + distance*math.cos(math.rad(rotZ+74.5)), vehY + distance*math.sin(math.rad(rotZ+90)) local ramp2Z = ramp1Z --getGroundForCoords(ramp2X, ramp2Y, vZ) local ramp3X, ramp3Y = ramp1X, ramp1Y+5.5 --vehX + distance*math.cos(math.rad(rotZ+90)), vehY + distance*math.sin(math.rad(rotZ+90)) + 5.5 local ramp3Z = ramp1Z --getGroundForCoords(ramp3X, ramp3Y, vZ) local ramp4X, ramp4Y = ramp1X-5.5, ramp1Y --vehX + distance*math.cos(math.rad(rotZ+90)) - 5.5, vehY + distance*math.sin(math.rad(rotZ+90)) local ramp4Z = ramp1Z --getGroundForCoords(ramp4X, ramp4Y, vZ) ramp1Y = ramp1Y - 5.5 returnedData[1] = ramp1X returnedData[2] = ramp1Y returnedData[3] = ramp1Z + 1 returnedData[4] = ramp2X returnedData[5] = ramp2Y returnedData[6] = ramp2Z + 1 returnedData[7] = ramp3X returnedData[8] = ramp3Y returnedData[9] = ramp3Z + 1 returnedData[10] = ramp4X returnedData[11] = ramp4Y returnedData[12] = ramp4Z + 1 spawnRamp ( gMe, returnedData[1], returnedData[2], returnedData[3], 0, 0, 0, 1632 ) spawnRamp ( gMe, returnedData[4], returnedData[5], returnedData[6], 0, 0, 90, 1632 ) spawnRamp ( gMe, returnedData[7], returnedData[8], returnedData[9], 0, 0, 180, 1632 ) spawnRamp ( gMe, returnedData[10], returnedData[11], returnedData[12], 0, 0, 270, 1632 ) triggerServerEvent ( "vehicleramps_PlayerSpawnedRamp", getLocalPlayer(), mode .. "s", returnedData ) setElementPosition ( playerVehicle, ramp1X, ramp1Y, ramp1Z+3 ) setVehicleRotation ( playerVehicle, 0, 0, 0 ) setElementVelocity ( playerVehicle, 0, 0, 0 ) setElementVelocity ( playerVehicle, 0, 0, 0 ) else local ramp1X, ramp1Y = vehX + distance*math.cos(math.rad(rotZ+90)), vehY + distance*math.sin(math.rad(rotZ+90)) local ramp1Z = getGroundForCoords(ramp1X, ramp1Y, vZ) if ( doneOnce ) then if ( lastx == ramp1X ) then if ( lasty == ramp1Y ) then ramp1Z = ramp1Z - 0.78579690039 end else doneOnce = false end else doneOnce = true end lastx = ramp1X lasty = ramp1Y returnedData[1] = ramp1X returnedData[2] = ramp1Y returnedData[3] = ramp1Z + 1 returnedData[4] = rotX returnedData[5] = rotY returnedData[6] = rotZ spawnRamp ( gMe, returnedData[1], returnedData[2], returnedData[3], returnedData[4], returnedData[5], returnedData[6], 1632 ) triggerServerEvent ( "vehicleramps_PlayerSpawnedRamp", getLocalPlayer(), mode, returnedData ) end elseif ( mode == "2" ) then local ramp1X, ramp1Y = vehX + distance*math.cos(math.rad(rotZ+83)), vehY + distance*math.sin(math.rad(rotZ+83)) local ramp2X, ramp2Y = vehX + distance*math.cos(math.rad(rotZ+95)), vehY + distance*math.sin(math.rad(rotZ+95)) local ramp1Z = getGroundForCoords(ramp1X, ramp1Y, vZ) local ramp2Z = getGroundForCoords(ramp1X, ramp1Y, vZ) if ( doneOnce ) then if ( lastx == ramp1X ) then if ( lasty == ramp1Y ) then ramp1Z = ramp1Z - 0.78579690039 end else doneOnce = false end else doneOnce = true end lastx = ramp1X lasty = ramp1Y returnedData[1] = ramp1X returnedData[2] = ramp1Y returnedData[3] = ramp1Z + 1 returnedData[4] = ramp2X returnedData[5] = ramp2Y returnedData[6] = ramp2Z + 1 returnedData[7] = rotX returnedData[8] = rotY returnedData[9] = rotZ spawnRamp ( gMe, returnedData[1], returnedData[2], returnedData[3], returnedData[7], returnedData[8], returnedData[9], 1632 ) spawnRamp ( gMe, returnedData[4], returnedData[5], returnedData[6], returnedData[7], returnedData[8], returnedData[9], 1632 ) triggerServerEvent ( "vehicleramps_PlayerSpawnedRamp", getLocalPlayer(), mode, returnedData ) elseif ( mode == "3" ) then local ramp1X, ramp1Y = vehX + distance*math.cos(math.rad(rotZ+90)), vehY + distance*math.sin(math.rad(rotZ+90)) local ramp2X, ramp2Y = vehX + (distance+5)*math.cos(math.rad(rotZ+90)), vehY + (distance+5)*math.sin(math.rad(rotZ+90)) local ramp1Z = getGroundForCoords(ramp1X, ramp1Y, vZ) local ramp2Z = getGroundForCoords(ramp1X, ramp1Y, vZ) if ( doneOnce ) then if ( lastx == ramp1X ) then if ( lasty == ramp1Y ) then ramp1Z = ramp1Z - 0.78579690039 end else doneOnce = false end else doneOnce = true end lastx = ramp1X lasty = ramp1Y returnedData[1] = ramp1X returnedData[2] = ramp1Y returnedData[3] = ramp1Z + 1 returnedData[4] = ramp2X returnedData[5] = ramp2Y returnedData[6] = ramp2Z + 4.5 returnedData[7] = rotX returnedData[8] = rotY returnedData[9] = rotZ local thisRamp = spawnRamp ( gMe, returnedData[1], returnedData[2], returnedData[3], returnedData[7], returnedData[8], returnedData[9], 1632 ) local rx, ry, rz = getObjectRotation ( thisRamp ) spawnRamp ( gMe, returnedData[4], returnedData[5], returnedData[6], rx + 22, returnedData[8], returnedData[9], 1632 ) triggerServerEvent ( "vehicleramps_PlayerSpawnedRamp", getLocalPlayer(), mode, returnedData ) elseif ( mode == "5" ) then local ramp1X, ramp1Y = vehX + distance*math.cos(math.rad(rotZ+90)), vehY + distance*math.sin(math.rad(rotZ+115)) local ramp1Z = getGroundForCoords(ramp1X, ramp1Y, vZ) if ( doneOnce ) then if ( lastx == ramp1X ) then if ( lasty == ramp1Y ) then ramp1Z = ramp1Z - 0.78579690039 end else doneOnce = false end else doneOnce = true end lastx = ramp1X lasty = ramp1Y returnedData[1] = ramp1X returnedData[2] = ramp1Y returnedData[3] = ramp1Z + 9 returnedData[4] = rotX returnedData[5] = rotY returnedData[6] = rotZ - 90 spawnRamp ( gMe, returnedData[1], returnedData[2], returnedData[3], 0, 0, returnedData[6], 13592 ) triggerServerEvent ( "vehicleramps_PlayerSpawnedRamp", getLocalPlayer(), mode, returnedData ) elseif ( mode == "6" ) then local ramp1X, ramp1Y = vehX + distance*math.cos(math.rad(rotZ+90)), vehY + distance*math.sin(math.rad(rotZ+90)) local ramp1Z = getGroundForCoords(ramp1X, ramp1Y, vZ) if ( doneOnce ) then if ( lastx == ramp1X ) then if ( lasty == ramp1Y ) then ramp1Z = ramp1Z - 0.78579690039 end else doneOnce = false
  18. No se a que se deben estos errores.
  19. Quizás toque algo que no debía en la carpeta de freeroam. Cuando inicio el servidor me tira estos errores: ESTE ES MI 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' }, 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 = false, 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 warpMe(targetPlayer) if local vehicle = getPedOccupiedVehicle(targetPlayer) if not vehicle then -- target player is not in a vehicle - just warp next to him local x, y, z = getElementPosition(targetPlayer) clientCall(source, 'setPlayerPosition', x + 2, y, z) else -- target player is in a vehicle - warp into it if there's space left if getPedOccupiedVehicle(source) then --removePlayerFromVehicle(source) outputChatBox('Get out of your vehicle first.', source) return end local numseats = getVehicleMaxPassengers(vehicle) for i=0,numseats do if not getVehicleOccupant(vehicle, i) then if isPedDead(source) then local x, y, z = getElementPosition(vehicle) spawnMe(x + 4, y, z + 1) end warpPedIntoVehicle(source, vehicle, i) return end end outputChatBox('No free seats left in ' .. getPlayerName(targetPlayer) .. '\'s vehicle.', source, 255, 0, 0) end local interior = getElementInterior(targetPlayer) setElementInterior(source, interior) setCameraInterior(source, interior) end function giveMeWeapon(weapon, amount)
  20. No funciona, en ninguno de los 2 mapas
  21. Has cambiado algo? EDITO: Acabo de ver el paréntesis.
  22. No funciona, pasa lo mismo que antes.
×
×
  • Create New...