Search the Community

Showing results for tags 'help'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
  • Archive
  • Private Bugtracker

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



About Me





Found 580 results

  1. Okay, so I need help how to delete old gamemode, so I could start uploading my new resources. In my old GM that I got from internet was a big mess (even the log in didn't work at all)... So I deleted all resources, restarted server from host, but still. Get that old gamemode on my screen whenever I try to enter to server. Now I started fresh today. Created few resources, uploaded them but I still get my old gamemode pops out when I go to my server. How to delete it entirely?
  2. i have a plugin which makes the nametag appear above the player and the own player and everyone too should be able to see it but it wont work heres the code addEventHandler("onClientRender",getRootElement(), function() local px,py,pz,tx,ty,tz,dist px,py,pz = getCameraMatrix() for k,v in ipairs(getElementsByType("player")) do if (v~=getLocalPlayer()) then tx,ty,tz = getElementPosition(v) dist = math.sqrt((px-tx)^2 + (py-ty)^2 + (pz-tz)^2) if dist < 30.0 then if isLineOfSightClear(px,py,pz,tx,ty,tz,true,false,false,true,false,false,getLocalPlayer()) then local sx,sy,sz = getPedBonePosition(v,5) local x,y = getScreenFromWorldPosition(sx,sy,sz+0.3) if x then dxDrawText(getPlayerName(v),x,y,x,y,tocolor(150,50,0),0.85+(15-dist)*0.02,"bankgothic") end end end end end end )addEventHandler("onClientRender",getRootElement(), function() local px,py,pz,tx,ty,tz,dist px,py,pz = getCameraMatrix() for k,v in ipairs(getElementsByType("player")) do tx,ty,tz = getElementPosition(v) dist = math.sqrt((px-tx)^2 + (py-ty)^2 + (pz-tz)^2) if dist < 30.0 then if isLineOfSightClear(px,py,pz,tx,ty,tz,true,false,false,true,false,false,getLocalPlayer()) then local sx,sy,sz = getPedBonePosition(v,5) local x,y = getScreenFromWorldPosition(sx,sy,sz+0.3) if x then dxDrawText(getPlayerName(v),x,y,x,y,tocolor(150,50,0),0.85+(15-dist)*0.02,"bankgothic") end end end end end )
  3. hi .. There was a problem with the site ?? I have encrypted the script but the problem happened that it works and opens in the local server and does not work with servers global Error !! Start was requested(not starting resource givesall server has come back from the future) [20:26:42] WARNING: givesall requires upgrade as <min_mta_version> section in the meta.xml is incorrect or missing (expected at least server 1.5.2-9.07903 because of 's.luac') [20:26:42] Use the 'upgrade' command to perform a basic upgrade of resources. [20:26:42] Starting givesall [20:26:42] Server minclientversion is now 1.5.2-9.07903 [20:26:42] givesall restarted successfully
  4. Hello! I am working at my own custom map and in order to do this i need to delete the default GTA SA map. For an unknown reason this little script( server side ) : for i=550,20000 do removeWorldModel(i,10000,0,0,0,0) --Here the interior is set to 0 end deletes the interiors too and i don't want that to happen.
  5. Freeroam Warining Help Me !!!! 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' }, setPedWalkingStyle = { option = 'walkstyle', descr = 'Setting walking 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 = false, min = 0.0, max = 1 }, gravity = { enabled = true, min = 0, max = 0.1 }, jetpack = true, kill = true, lights = true, paintjob = true, repair = true, setskin = true, setstyle = true, walkstyle= true, spawnmaponstart = true, spawnmapondeath = true, stats = true, time = { set = false, freeze = false }, upgrades = true, warp = true, weapons = { enabled = true, vehiclesenabled = true, disallowed = {} }, weather = false, welcometextonstart = true, vehicles = { maxidletime = 100000, idleexplode = true, maxperplayer = 1, 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 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 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 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, 200) 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) if isPedDead(source) then spawnMe() end local vehicle = getPedOccupiedVehicle(targetPlayer) local interior = getElementInterior(targetPlayer) if not vehicle then local x, y, z = getElementPosition(targetPlayer) clientCall(source, 'setPlayerPosition', x + 2, y, z) setElementInterior(source, interior) setCameraInterior(source, interior) else if getPedOccupiedVehicle(source) then 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 setElementInterior(source, interior) setCameraInterior(source, interior) warpPedIntoVehicle(source, vehicle, i) return end end outputChatBox('No free seats left in ' .. getPlayerName(targetPlayer) .. '\'s vehicle.', source, 255, 0, 0) end end local sawnoffAntiAbuse = {} function giveMeWeapon(weapon, amount) if weapon and weapon > 50 then return end if table.find(getOption('weapons.disallowed'), weapon) then errMsg((getWeaponNameFromID(weapon) or tostring(weapon)) .. 's are not allowed', source) else giveWeapon(source, weapon, amount, true) if weapon == 26 then if not sawnoffAntiAbuse[source] then setControlState (source, "aim_weapon", false) setControlState (source, "fire", false) toggleControl (source, "fire", false) reloadPedWeapon (source) sawnoffAntiAbuse[source] = setTimer (function(source) if not source then return end toggleControl (source, "fire", true) sawnoffAntiAbuse[source] = nil end, 3000, 1, source) end end end end function killSawnOffTimersOnQuit() if isTimer (sawnoffAntiAbuse[source]) then killTimer (sawnoffAntiAbuse[source]) sawnoffAntiAbuse[source] = nil end end addEventHandler ("onPlayerQuit", root, killSawnOffTimersOnQuit) function giveMeVehicles(vehicles) if type(vehicles) == 'number' then vehicles = { vehicles } end local px, py, pz, prot local radius = 3 local playerVehicle = getPedOccupiedVehicle(source) if playerVehicle and isElement(playerVehicle) then px, py, pz = getElementPosition(playerVehicle) prot, prot, prot = getVehicleRotation(playerVehicle) else px, py, pz = getElementPosition(source) prot = getPedRotation(source) end local offsetRot = math.rad(prot) local vx = px + radius * math.cos(offsetRot) local vy = py + radius * math.sin(offsetRot) local vz = pz + 2 local vrot = prot local vehicleList = g_PlayerData[source].vehicles local vehicle if ( not vehicles ) then return end for i,vehID in ipairs(vehicles) do if vehID < 400 or vehID > 611 then errMsg(vehID ..' is incorrect vehicle model', source) elseif not table.find(getOption('vehicles.disallowed'), vehID) then if #vehicleList >= getOption('vehicles.maxperplayer') then unloadVehicle(vehicleList[1]) end vehicle = createVehicle(vehID, vx, vy, vz, 0, 0, vrot) if (not isElement(vehicle)) then return end setElementInterior(vehicle, getElementInterior(source)) setElementDimension(vehicle, getElementDimension(source)) table.insert(vehicleList, vehicle) g_VehicleData[vehicle] = { creator = source, timers = {} } if vehID == 464 then warpPedIntoVehicle(source, vehicle) elseif not g_Trailers[vehID] then if getOption('vehicles.idleexplode') then g_VehicleData[vehicle] = setTimer(commitArsonOnVehicle, getOption('vehicles.maxidletime'), 1, vehicle) end g_VehicleData[vehicle].timers.destroy = setTimer(unloadVehicle, getOption('vehicles.maxidletime') + (getOption('vehicles.idleexplode') and 10000 or 0), 1, vehicle) end vx = vx + 4 vz = vz + 4 else errMsg(getVehicleNameFromModel(vehID):gsub('y$', 'ie') .. 's are not allowed', source) end end end _setPlayerGravity = setPedGravity function setPedGravity(player, grav) if grav < getOption('gravity.min') then errMsg(('Minimum allowed gravity is %.5f'):format(getOption('gravity.min')), player) elseif grav > getOption('gravity.max') then errMsg(('Maximum allowed gravity is %.5f'):format(getOption('gravity.max')), player) else _setPlayerGravity(player, grav) end end function setMyGameSpeed(speed) if speed < getOption('gamespeed.min') then errMsg(('Minimum allowed gamespeed is %.5f'):format(getOption('gamespeed.min')), source) elseif speed > getOption('gamespeed.max') then errMsg(('Maximum allowed gamespeed is %.5f'):format(getOption('gamespeed.max')), source) else clientCall(source, 'setGameSpeed', speed) end end function setTimeFrozen(state) if state then g_FrozenTime = { getTime() } g_FrozenWeather = getWeather() clientCall(g_Root, 'setTimeFrozen', state, g_FrozenTime[1], g_FrozenTime[2], g_FrozenWeather) else if g_FrozenTime then setTime(unpack(g_FrozenTime)) g_FrozenTime = nil setWeather(g_FrozenWeather) g_FrozenWeather = nil end clientCall(g_Root, 'setTimeFrozen', state) end end function fadeVehiclePassengersCamera(toggle) local vehicle = getPedOccupiedVehicle(source) if not vehicle then return end local player for i=0,getVehicleMaxPassengers(vehicle) do player = getVehicleOccupant(vehicle, i) if player then fadeCamera(player, toggle) end end end addEventHandler('onPlayerChat', g_Root, function(msg, type) if type == 0 then cancelEvent() if chatTime[source] and chatTime[source] + tonumber(get("*chat/mainChatDelay")) > getTickCount() then outputChatBox("Teker teker yazınız!", source, 255, 0, 0) return else chatTime[source] = getTickCount() end if get("*chat/blockRepeatMessages") == "true" and lastChatMessage[source] and lastChatMessage[source] == msg then outputChatBox("Aynı kelimeleri tekrarlamayınız!", source, 255, 0, 0) return else lastChatMessage[source] = msg end local r, g, b = getPlayerNametagColor(source) outputServerLog( "CHAT: " .. getPlayerName(source) .. ": " .. msg ) end end ) addEventHandler('onVehicleEnter', g_Root, function(player, seat) if not g_VehicleData[source] then return end if g_VehicleData[source] then killTimer(g_VehicleData[source] g_VehicleData[source] = nil end if g_VehicleData[source].timers.destroy then killTimer(g_VehicleData[source].timers.destroy) g_VehicleData[source].timers.destroy = nil end if not getOption('weapons.vehiclesenabled') and g_ArmedVehicles[getElementModel(source)] then toggleControl(player, 'vehicle_fire', false) toggleControl(player, 'vehicle_secondary_fire', false) end end ) function setMyPos(x, y, z) if not isElement(client) or getElementType(client) ~= "player" then return end local veh = getPedOccupiedVehicle (client) if veh then if getVehicleController(veh) == client then setElementPosition (veh, x, y, z) setElementInterior (veh, getElementInterior (client)) for s = 1, getVehicleMaxPassengers (veh) do local occ = getVehicleOccupant (veh, s) if occ then setElementInterior (occ, getElementInterior(veh)) end end else removePedFromVehicle(source) end end setElementPosition (client, x, y, z) fadeCamera (client, true) end addEventHandler('onVehicleExit', g_Root, function(player, seat) if not g_VehicleData[source] then return end if not g_VehicleData[source] then for i=0,getVehicleMaxPassengers(source) or 1 do if getVehicleOccupant(source, i) then return end end if getOption('vehicles.idleexplode') then g_VehicleData[source] = setTimer(commitArsonOnVehicle, getOption('vehicles.maxidletime'), 1, source) end g_VehicleData[source].timers.destroy = setTimer(unloadVehicle, getOption('vehicles.maxidletime') + (getOption('vehicles.idleexplode') and 10000 or 0), 1, source) end if g_ArmedVehicles[getElementModel(source)] then toggleControl(player, 'vehicle_fire', true) toggleControl(player, 'vehicle_secondary_fire', true) end end ) function commitArsonOnVehicle(vehicle) g_VehicleData[vehicle] = nil setElementHealth(vehicle, 0) end addEventHandler('onVehicleExplode', g_Root, function() if not g_VehicleData[source] then return end if g_VehicleData[source] then killTimer(g_VehicleData[source] g_VehicleData[source] = nil end if not g_VehicleData[source].timers.destroy then g_VehicleData[source].timers.destroy = setTimer(unloadVehicle, 5000, 1, source) end end ) function unloadVehicle(vehicle) if not g_VehicleData[vehicle] then return end for name,timer in pairs(g_VehicleData[vehicle].timers) do if isTimer(timer) then killTimer(timer) end g_VehicleData[vehicle].timers[name] = nil end local creator = g_VehicleData[vehicle].creator if g_PlayerData[creator] then table.removevalue(g_PlayerData[creator].vehicles, vehicle) end g_VehicleData[vehicle] = nil if isElement(vehicle) then destroyElement(vehicle) end end function quitHandler(player) if type(player) ~= 'userdata' then player = source end if g_PlayerData[player].blip and isElement(g_PlayerData[player].blip) then destroyElement(g_PlayerData[player].blip) end table.each(g_PlayerData[player].vehicles, unloadVehicle) g_PlayerData[player] = nil chatTime[player] = nil lastChatMessage[player] = nil end addEventHandler('onPlayerQuit', g_Root, quitHandler) addEventHandler('onResourceStop', g_ResRoot, function() for player,data in pairs(g_PlayerData) do quitHandler(player) end end ) addEvent('onServerCall', true) addEventHandler('onServerCall', resourceRoot, function(fnName, ...) source = client local fnInfo = g_RPCFunctions[fnName] if fnInfo and ((type(fnInfo) == 'boolean' and fnInfo) or (type(fnInfo) == 'table' and getOption(fnInfo.option))) then local fn = _G for i,pathpart in ipairs(fnName:split('.')) do fn = fn[pathpart] end fn(...) elseif type(fnInfo) == 'table' then errMsg(fnInfo.descr .. ' is not allowed', source) end end ) function clientCall(player, fnName, ...) triggerClientEvent(player, 'onClientCall', g_ResRoot, fnName, ...) end
  6. Hello! I tried to assign a lod to an object ( both the model and the lod are custom models ) . My problem is that when the object appears the lod doesn't dissapear as it should /debugscript 3 : empty Code ( Server sided ) lods = { [ 12855 ] = 13250 --[ object id ] = corresponding lod id } function map_load() --irelevant code removed LODs_load() end addEventHandler( "onResourceStart", getRootElement(), map_load ) function LODs_load() for index, value in pairs ( getElementsByType( "object" ) ) do for i, v in pairs ( lods ) do if ( lods[ getElementModel( value ) ] ) then local x, y, z = getElementPosition( value ) local rX, rY, rZ = getElementRotation( value ) setLowLODElement( value, createObject( lods[ getElementModel( value ) ], x, y, z , rX, rY, rZ, true ) ) end end end end lod model still there:
  7. Apo


    hey i have a roleplay server and when i update resources the player downloads them even after logging in. i want them to download it before they log in
  8. Hello! I am developing my own server and i need some help with the custom vehicles textures. My server is based on Romania and i need someone to help me replace the emergency vehicles textures with the romanian ones. If it's a complicated thing and is needed i can pay More details : galea.stefan ( skype )
  9. Necessito inserir alguns dados no aquivo internal.db pra que quando eu logue em minha conta eles estejam sempre salvos e atualizados como posso inseri los lá?
  10. Hello! There was such question: it is possible to make a window with buttons and pictures by means of html / css and to make a bind on the button? Something like a GUI window, just made with html. I am hope for your help!
  11. Galera, Estou com um problema com esse script: veh1 = createVehicle(596, 2485,-1667,13.34375) function spawnar() if (veh1) then setVehicleRespawnDelay(veh1, 2000, 1) toogleVehicleRespawn(veh1, true) end end addEventHandler("onVehicleExplode", getElementRoot, spawnar) Eu spawno o veiculo,mas não consigo entrar nele resumindo torna-se inutilizável. aguem poderia corrigir ou mencionar oque está ocorrendo com este script pra mim concerta-lo?
  12. Fala galera! então como sabem estive afastado do mta e me dediquei ao samp por um tempo, acabei esquecendo todo meu conhecimento sobre programação .lua e agora como estou de volta vou precisar da ajuda de vocês mais que nunca vamos lá! Então eu preciso setar uma animação no servidor pra que quando alguém entre já esteja com a animação,tentei fazer sozinho aqui,mas como eu já falei não lembro de quase nada: function sa(player) setPedWalkingStyle (source, 128) end end addEventHandler("onResourceStart", root, sa)
  13. I know its really stupid to ask because i know the problem. But i put that right on ACL and it stills give me that message, why ?? it is happening in a host WARNING: anti-spam\anti_flood.lua:45: Access denied @ 'setPlayerMuted'
  14. Hello, I need help! Can someone make a script that will make minigun not overpowered. I mean that I need minigun that will do low damage, because it sucks So please , please help me guys
  15. I can not convert a mask, I used this code below, but at the time of selecting the MTA date. P.S: I have already tested other types of masks and still crashes. (Google Translate) txd = engineLoadTXD("hockey.txd") engineImportTXD(txd, 30376) dff = engineLoadDFF("hockeymask.dff",30376) engineReplaceModel(dff, 30376)
  16. [2017-03-10 16:55:55] WARNING: admin/server/admin_server.lua:1163: Bad argument @ 'destroyElement' [Expected element at argument 1] < Console log . I cant fix it help me plz. Script is : elseif ( action == "setcolor" ) then r, g, b = hex2rgb(data[1]) r2, g2, b2 = hex2rgb(data[2]) r3, g3, b3 = hex2rgb(data[3]) r4, g4, b4 = hex2rgb(data[4]) if ( not setVehicleColor ( vehicle, r, g, b, r2, g2, b2, r3, g3, b3, r4, g4, b4 ) ) then action = nil end elseif ( action == "setlights" ) then r, g, b = hex2rgb(data[1]) if ( not setVehicleHeadLightColor ( vehicle, r, g, b) ) then action = nil end elseif ( action == "setplates" ) then mdata = data[1] setVehiclePlateText ( vehicle, data[1] ) elseif ( action == "blowvehicle" ) then setTimer ( blowVehicle, 100, 1, vehicle ) elseif ( action == "destroyvehicle" ) then setTimer ( destroyElement, 100, 1, vehicle ) else action = nil end
  17. السلام عليكم انا عوز اعمل زر فى لوحه تدخلك عالم جديد غير العالم العادى والعالم دا انا هعمل فيه حاجات ازاى شباب
  18. Dear players, i am trying to create a city from 0 using default models and models made by myself.I create the models in Google Sketchup then i export them in 3ds max( and then to gta ) but i have a little problem with the model illumination as shown in the screenshoot below. Maybie @CodyJ(L) or anyone else which know how to create models
  19. Hello, I'm using this level system. I would like someone to help me with a script. As soon as the player climbs the level. He would win some items. And a message would appear stating that he has Went up the level. Can someone help me ? File Cliente: local sW, sH = guiGetScreenSize() local windowRank = guiCreateWindow ( (sW-500)/2, (sH-400)/2, 500, 400, "Manage Players Level System", false ) guiWindowSetSizable ( windowRank, false ) guiSetVisible ( windowRank, false) local windowRankGridList = guiCreateGridList ( 10, 28, 360, 360, false, windowRank ) local windowRankColumn = guiGridListAddColumn( windowRankGridList, "Name", 0.90 ) local windowRankEdit = guiCreateEdit( 383, 150, 100, 30, "", false, windowRank) local windowRankEdit2 = guiCreateEdit( 383, 250, 100, 30, "", false, windowRank) local windowRankButton = guiCreateButton( 383, 358, 100, 30, "Change", false, windowRank) local windowRankLabelLevel = guiCreateLabel(383, 120, 100, 20,"Level: None", false, windowRank) guiLabelSetHorizontalAlign (windowRankLabelLevel, "center") local windowRankLabelExp = guiCreateLabel(383, 220, 100, 20,"Experiencia: None", false, windowRank) guiLabelSetHorizontalAlign (windowRankLabelExp, "center") local ranksTable = { {"1","Treinamento","1000"}, {"2","Cadete Júnior","2000"}, {"3","Cadete","3000"}, {"4","Cadete Sênior","4000"}, {"5","Cadete de 1ª Classe","5000"}, {"6","Recruta","5800"}, {"7","Soldado","8100"}, {"8","Soldado Raso de 2ª Classe","11000"}, {"9","Soldado Raso","14600"}, {"10","Soldado Raso de 1ª Classe","18800"}, {"11","Especialista","23800"}, {"12","Especialista de Artilharia","29600"}, {"13","Especialista Técnico","36300"}, {"14","Especialista de 1ª Classe","44100"}, {"15","Patrulheiro","53000"}, {"16","Soldado EP","63000"}, {"17","Cabo","74500"}, {"18","Líder de Tiro","87400"}, {"19","Sargento de 3ª Classe","102000"}, {"20","Sargento de 2ª Classe","118400"}, {"21","Sargento","136700"}, {"22","Sargento de 1ª Classe","157200"}, {"23","Sargento de Apoio","180000"}, {"24","Sargento de Artilharia","205200"}, {"25","Sargento Mestre","233300"}, {"26","Primeiro Sargento","264400"}, {"27","Sargento Comandante","298700"}, {"28","Sargento de Artilharia Mestre","336500"}, {"29","Sargento Maior","378000"}, {"30","Sargento de Companhia","423700"}, {"31","Candidato a Sargento Oficial","473700"}, {"32","Sargento Oficial","528400"}, {"33","Sargento Oficial Chefe","588100"}, {"34","Sargento Oficial Chefe de 1ª Classe","653400"}, {"35","Sargento Oficial Mestre","724400"}, {"36","Intendente","801600"}, {"37","Cadete-Oficial Júnior","885500"}, {"38","Cadete-Oficial Sênior","976400"}, {"39","Aspirante","1074800"}, {"40","Segundo Tenente","1181100"}, {"41","Primeiro Tenente","1296000"}, {"42","Subtenente","1419700"}, {"43","Tenente","1552900"}, {"44","Tenente-Coronel","1696200"}, {"45","Tenente-Capitão","1849900"}, {"46","Capitão","2014800"}, {"47","Capitão 1","2191200"}, {"48","Capitão 2","2380000"}, {"49","Capitão 3","2581500"}, {"50","Coronel ","2796400"}, {"51","Brigadeiro","3025300"}, {"52","Marechal de Campo","3268800"}, {"53","Comandante","3527500"}, {"54","Alto-Comandante","3801900"}, {"55","Supremo Comandante","4092800"}, {"56","Major-General","4400600"}, {"57","Tenente-General","4726000"}, {"58","General-Marechal de Campo","5069500"}, {"59","Segundo Tenente SF","5431800"}, {"60","Primeiro Tenente SF'","6000000"}, {"61","Subtenente SF'","6568200"}, {"62","Tenente SF","7136400"}, {"63","Tenente-Coronel SF'","7704600"}, {"64","Tenente-Capitão SF","8272800"}, {"65","Capitão SF","8841000"}, {"66","Capitão 1 SF","9409200"}, {"67","Capitão 2 SF","9977400"}, {"68","Capitão 3 SF","10545600"}, {"69","Coronel SF","11113800"}, {"70","General de Exército","11692000"} } function getPlayerRankName() for i=1,70 do if getElementData(localPlayer, "level") == tonumber(ranksTable[1]) then return ranksTable[2] end end end function getPlayerRankExperience() for i=1,70 do if getElementData(localPlayer, "level") == tonumber(ranksTable[1]) then return tonumber(ranksTable[3]) end end end function mainRanks() if getElementData(localPlayer, "logedin") == true then if getElementData(localPlayer, "experience") > getPlayerRankExperience() then if getElementData(localPlayer, "level") < 70 then setElementData(localPlayer, "level", getElementData(localPlayer, "level") + 1) end end dxDrawImage ( sW/22, sH/2.8, sW/60, sH/60, "images/level/rank"..getElementData(localPlayer, "level")..".jpg" ) dxDrawText ( getPlayerRankName().." ("..getElementData(localPlayer, "level")..")",sW/65, sH/3.6, sW/0, sH/0, tocolor ( 240, 230, 140, 255 ), 1.02, "default-bold" ) dxDrawText ( "Experiência atual: "..getElementData(localPlayer, "experience"), sW/65, sH/3.27, sW/0, sH/0, tocolor ( 70, 130, 180, 255 ), 1.02, "default-bold" ) if getElementData(localPlayer, "level") < 70 then dxDrawText ( "Experiencia necessario: "..getPlayerRankExperience(),sW/65, sH/3, sW/0, sH/0, tocolor ( 70, 130, 180, 255 ), 1.02, "default-bold" ) else dxDrawText ( "O máximo foi alcançado",sW/65, sH/3, sW/0, sH/0, tocolor ( 70, 130, 180, 255 ), 1.02, "default-bold" ) end end end addEventHandler ( "onClientRender", root, mainRanks ) function toggleWindowRanks() if getElementData(localPlayer, "adminRanks") == true then if guiGetVisible(windowRank) == false then guiSetVisible(windowRank, true) showCursor(true) for k, v in ipairs (getElementsByType("player")) do if getElementData (v, "logedin") == true then local row = guiGridListAddRow ( windowRankGridList ) guiGridListSetItemText ( windowRankGridList, row, windowRankColumn, getPlayerName ( v ), false, false ) end end else guiSetVisible(windowRank, false) showCursor(false) guiGridListClear(windowRankGridList) end end end bindKey("F7", "down", toggleWindowRanks) function windowRankClick() local playerName = guiGridListGetItemText ( windowRankGridList, guiGridListGetSelectedItem ( windowRankGridList ), 1 ) if source == windowRankGridList then if guiGridListGetSelectedCount(windowRankGridList) == 1 then guiSetText(windowRankLabelLevel, "Level: "..getElementData(getPlayerFromName(playerName), "level")) guiSetText(windowRankLabelExp, "Experiencia: "..getElementData(getPlayerFromName(playerName), "experience")) else guiSetText(windowRankLabelLevel, "Level: None") guiSetText(windowRankLabelExp, "Experiencia: None") end end if source == windowRankButton then if guiGridListGetSelectedCount(windowRankGridList) == 1 then local playerName = guiGridListGetItemText ( windowRankGridList, guiGridListGetSelectedItem ( windowRankGridList ), 1 ) if guiGetText(windowRankEdit) ~= "" then setElementData(getPlayerFromName(playerName), "level", tonumber(guiGetText(windowRankEdit))) guiSetText(windowRankLabelLevel, "Level: "..getElementData(getPlayerFromName(playerName), "level")) end if guiGetText(windowRankEdit2) ~= "" then setElementData(getPlayerFromName(playerName), "experience", tonumber(guiGetText(windowRankEdit2))) guiSetText(windowRankLabelExp, "Experiencia: "..getElementData(getPlayerFromName(playerName), "experience")) end else outputChatBox("#FF0000[LEVEL SYSTEM]: #FFFFFFSelecione o Player!", thePlayer, 171, 205, 239, true) end end end addEventHandler ("onClientGUIClick", windowRank, windowRankClick)
  20. So hello everyone it's me, Lopex, once again! Today I have thought of something new I can try to make! It's a mower job! The idea is that a player goes to some mowers that would be spawner in Glen Park, then get on them and have a option like /startmowing in chat, then when they do such command they get told in chat to start driving around, and as they drive around Glen Park they would have a little bar on their screen that fills up and when it's full it goes away and gives you some money! So steps that I believe will be required: Spawn the vehicle via spawnVehicle (coords, rotation) After spawning the vehicle we check if the player is in that vehicle If it's a mower then you get the option in chat, if not then nothing After player does the certain command they start mowing and are required to drive around. It displays a little bar that fills up as they drive When set bar is full, they recieve a certain amount of money! (Doesn't get affected by speed or vehicle hp!!!) Displays the option to start mowing again. So.. The thing I am confused about is weather to use spawnVehicle or createVehicle... Like what is the difference? I want the mower to be there all the time, not by set event, so mabey we want to do onResourceStart ? Or can we just do a cmd like spawnVehicle or createVehicle alone, without any event or anything, just at the top of the script? Also I got confused by one more thing.. If let's say I do something like: function spawnMower(--what do I place here?) --And I don't mean only on the event "onResourceStart" I mean like overall what do I place there? addEventHandler(onResourceStart, getRootElement(), spawnMower) As I say it there... What do I place in those () brackets? Does it work like: Since I have onResourceStart (Which doesn't have any arguments) I don't need to place anything there? But if it let's say had something with like 2 arguments, then I need to place those there? Someone please help me out with my questions and remember! THE AIM IS FOR ME TO LEARN NOT TO GET A FINISHED SCRIPT FAST! I will make a mini-script as far as I think I can take it. When I get home that is. Thanks for all your patience to read this and thanks if you replied in any, shape or form!
  21. i was kicked by the game (AC #11 Q9LW)
  22. I wanna know how to make an area without collisions, its on a respawn and if players become afk, the others can walk without become stucked. Thanks.
  23. Hello , can y'all help me for scripting Gamemodes , if player joined/spawning , the player spawn on a car ..
  24. __ السلام عليكم__ -:واما بعد .اولا: ياريت اللى مايفهم بالبرمجة شى اصلا نصيحة لاتضيع وقتك هون* . بردو لاتضيع وقتك هون mta ثانيا : اللى هيقلى انا ابرمج فى* شى اساسى طبعا! linux ثالثا : نبداء بالشى المهم اول شى لازم يعرف فى نظام* .ip,tcp,udp,ports,other.....وثانى شى لازما يعرف فى مجال الشبكات يعنى مثال& . ثالث شى يالحلوين يحط فى حسابة انة مايشتغل على فى بى اس عادى يعنى بختصار فى مودم منجر& رابع شى الوقت مهم ولله بسبب تكالف الباهظة الفى بى اس يعنى يخلص الاستضافة فى يوم اقصى& .شى 24 مفهو م ماعم امزح نرجع بقى لعنوان الموضوع *-- كيف يعنى اكبر استضافة عربية --*! قق $$$يب راح اجوابك الحين $$$ 35 vCPUs ,200 GB memory -1 HDD :10000 Tb -2 Internet speed :2000 mb and Unlimited -3 4-Servers : America, Asia and Europe the cost : 1500 $ in month بختصار الموضوع كله بلكلمتين :ا اذا انطبقت عليك هالشروط ببساطة تقدر تنورنا اسكيب الحين عبر اللينك اسفل الموضوع* ثانى شى لك اجرك اللى تطلبة او فى بى اس بمواصفات محددة لمدة شهر او ادمن فى اللوحة لمدة سنة ولك تشغل4 سيرفرات لاى لعبة تبيها * اخر شى : :بالاخير Thanks for watching my Topic !
  25. Hello everyone, It's Lopexsw again here! So I have thought of a new script I want to make with your (The Pro scripters) help! My aim is to make a script that when a player gets into a certain vehicle for example Journey 508 they have the option to do /cookmeth and then if they have the required ingredients in their inventory, they can start cooking meth! But if for example they don't have a gas mask (Which is possible to get in the server I play, but I doubt this script will be there ever.) they're health would go a bit down while they do it! So as I see the steps are something along the lines of this: When a player gets into a vehicle, check what vehicle that is. If it's a Journey (id 508) then display message in chat that they have a option to cook meth. *If it's not a journey don't show anything* When the player writes /cookmeth check they'r inventory for certain items. If they have the certain items, then freeze them for 3 minutes. *If not, display message you can't do it* At the same time display a countdown of the 3 minutes saying "3 minutes of cooking remaining" or something like that that goes down. After 3 minutes, unfreeze the player. Take the items required and give the meth to the player! So 1 problem that I thought of, is this client side or a server side script? I think it's server sided. As always, any help is hugely appreciated, and I will try to make something myself too, not just get a result from you guys! #1 priority is learning! #2 is a done well made script for someone's server! I think this will be a very intresting script!