-
Posts
1,546 -
Joined
-
Last visited
Everything posted by Dimos7
-
np
- 9 replies
-
- default team
- team help
-
(and 1 more)
Tagged with:
-
local Unemployed = createTeam("Unemployed", 255, 0, 255) addEventHandler("onPlayerConnect", root, function() setPlayerTeam(source, Unemployed) setElementModel(source, 0) end) spell mistake
- 9 replies
-
- default team
- team help
-
(and 1 more)
Tagged with:
-
local Unemployed = createTeam("Unemployed", 255, 0, 255) addEventHandler("onPlayerConnect", root, function() setPlayerTeam(source, Unempolyed) setElementModel(source, 0) end) try that
- 9 replies
-
- default team
- team help
-
(and 1 more)
Tagged with:
-
--[[***************************************************************************** * * PROJECT: VehicleBlips * LICENSE: GNU GPLv3 * FILE: :VehicleBlips/cVehicleBlips.lua * PURPOSE: Vehicle blips. * DEVELOPERS: John_Michael <[email protected]> * ********************************************************************************]] local vehicleBlipRoot = createElement("vehicleBlipRoot", "vehicleBlipRoot") --This function creates a blip for all currently streamed-in vehicles when the resource starts. local function resourceStart() for _, vehicle in ipairs(getElementsByType("vehicle"), root, true) do if vehicle ~= getPedOccupiedVehicle(localPlayer) then local blip = createBlipAttachedTo(vehicle, 0, 1, 150, 150, 150, 255, -10, 300) setElementParent(blip, vehicleBlipRoot) end end end addEventHandler("onClientResourceStart", root, resourceStart) --This function destroys a vehicle's blip when it streams out. local function streamOut() for _, blip in ipairs(getElementChildren(vehicleBlipRoot)) do if getElementAttachedTo(blip) == source then destroyElement(blip) end end removeEventHandler("onClientElementStreamOut", source, streamOut) removeEventHandler("onClientElementDestroy", source, streamOut) end --This function creates a blip when a vehicle streams in. local function streamIn() if getElementType(source) ~= "vehicle" then return end --Check if the vehicle already has a blip. for _, blip in ipairs(getElementChildren(vehicleBlipRoot)) do if getElementAttachedTo(blip) == source then return end end local blip = createBlipAttachedTo(source, 0, 1, 150, 150, 150, 255, -10, 300) setElementParent(blip, vehicleBlipRoot) addEventHandler("onClientElementStreamOut", source, streamOut) addEventHandler("onClientElementDestroy", source, streamOut) end addEventHandler("onClientElementStreamIn", root, streamIn) addEventHandler("onClientVehicleEnter", root, function() for p, v in ipairs(getElementByType("player")) do for k , blip in ipairs()) do destroyElement(blip) end end end) When someone enters a vehicle, the blip of that specific vehicle should be disabled. Other vehicle blips should still appear ofcourse. When the person leaves the vehicle, the blip should appear again. It doesn't work somehow, could someone help me with this?
-
function vehicleSirens(thePlayer) if isPedInVehicle(thePlayer) then theVehicle = getPedOccupiedVehicle(thePlayer) if getPedOccupiedVehicleSeat(thePlayer) == 0 then if getVehicleName(theVehicle) == "Towtruck" then setVehicleSirens(theVehicle, 1, -0.6, -0.5, 1.4, 255, 0, 0) setVehicleSirens(theVehicle, 2, 0, -0.5, 1.4, 255, 153, 0) setVehicleSirens(theVehicle, 3, 0.6, -0.5, 1.4, 255, 0, 0) addVehicleSirens(theVehicle, 3, 2, true, false, true, true) if not getVehicleSirensOn(theVehicle) then setVehicleSirensOn(theVehicle, true) else setVehicleSirensOn(theVehicle, false) end end end end end addCommandHandler("siren", vehicleSirens) guys my script not working on some gametime hours why?
-
local Unemployed = createTeam("Unemployed", 255, 0, 255) addEventHandler("onPlayerJoin", root, function() setPlayerTeam(source, Unempolyed) setElementModel(source, 0) end)
- 9 replies
-
- default team
- team help
-
(and 1 more)
Tagged with:
-
local Unemployed = createTeam("Unemployed", 255, 0, 255) addEventHandler("onPlayerJoin", root, function() setPlayerTeam(source, Unempolyed) setElementModel(source, 0) end end)
- 9 replies
-
- default team
- team help
-
(and 1 more)
Tagged with:
-
how to make it if h press and siren is on silent go off?
-
function vehicleSirens(theVehicle) if isElement(theVehicle) and getElementType(theVehicle) == "vehicle" then if getVehicleName(theVehicle) == "Towtruck" then setVehicleSirens(theVehicle, 1, 0, -1.6, 1.1, 255, 0, 0) setVehicleSirens(theVehicle, 2, 0.7, -1.6, 1.1, 0, 35, 0) setVehicleSirens(theVehicle, 3, 1.4, -1.6, 1.1, 255, 0, 0) addVehicleSirens(theVehicle, 1, 2, true, false, true, true) if not getVehicleSirensOn(theVehicle) then setVehicleSirensOn(theVehicle, true) else setVehicleSirensOn(theVehicle, false) end end end end addCommandHandler("siren", vehicleSirens) not working why not error or warnings?
-
Hello guys i am try put sirenlight on lightbar on towtruck the problem is make but i don;t know how can help me also there not error or warning for this function vehicleSirens(theVehicle) if isElement(theVehicle) and getElementType(theVehicle) == "vehicle" then if getVehicleName(theVehicle) == "Towtruck" then setVehicleSirens(theVehicle, 1, 0, -1.6, 1.1, 255, 0, 0) setVehicleSirens(theVehicle, 2, 0.7, -1.6, 1.1, 0, 35, 0) setVehicleSirens(theVehicle, 3, 1.4, -1.6, 1.1, 255, 0, 0) addVehicleSirens(theVehicle, 1, 2) if not getVehicleSirensOn(theVehicle) then setVehicleSirensOn(theVehicle, true) else setVehicleSirensOn(theVehicle, false) end end end end addCommandHandler("siren", vehicleSirens) ake siren without sound any help?
-
here is not for giving scripts try yourself or download it from the comunity
-
-- client addCommandHandler("fly", function() triggerServerEvent("access", localPlayer) --ask server for access end ) addEvent("onFlyGranted", true) addEventHandler("onFlyGranted", localPlayer, function() flyEnabled = not flyEnabled --invert flyEnabled setWorldSpecialPropertyEnabled("aircars", flyEnabled) --set aircars to the new, inverted flyEnabled end ) -- server function flyAbility() if client then else return false end --make sure that the event was properly called (see https://wiki.multitheftauto.com/wiki/Script_security#Validating_client_triggerServerEvent) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(client)), aclGetGroup("Admin")) then -- if authorised triggerClientEvent(client, "onFlyGranted", client) --tell client to change flyEnabled and aircars property end end addEvent("access", true) addEventHandler("access", root, flyAbility) --catch client's requests for authorisation
-
you are try use a name for example bloomed and do something to him or just want take a player with part of name if you try like blo it not work it need wrote whole name if has hexcode hexcode too
-
-- client addCommandHandler("fly", function() triggerServerEvent("access", localPlayer, isPlayerAdmin) if isPlayerAdmin == true then if not flyEnabled then setWorldSpecialPropertyEnabled("aircars", true) flyEnabled = true else setWorldSpecialPropertyEnabled("aircars", false) flyEnabled = false end end end) -- server function flyAbility(thePlayer) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("Admin")) then isPlayerAdmin = true end end addEvent("access", true) addEventHandler("access", root, flyAbility)
-
GUIEditor = { label = {}, edit = {}, button = {}, window = {}, combobox = {}, memo = {} } function diploma() local screenW, screenH = guiGetScreenSize() if (getElementData(player,"faction")) == 4 and ( getElementData(player, "factionleader")) then GUIEditor.window[1] = guiCreateWindow((screenW - 666) / 2, (screenH - 384) / 2, 666, 384, "Diplomă Universitate", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF00FFFC") GUIEditor.button[1] = guiCreateButton(257, 347, 137, 27, "Ieși", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000") GUIEditor.label[1] = guiCreateLabel(10, 26, 137, 48, "Nume Elev:", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 0, 255, 252) GUIEditor.memo[1] = guiCreateMemo(181, 4, 20, 20, "", false, GUIEditor.label[1]) GUIEditor.label[2] = guiCreateLabel(254, 32, 149, 31, "Descriere Diplomă:", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[2], 0, 255, 252) GUIEditor.memo[2] = guiCreateMemo(359, 24, 293, 313, "", false, GUIEditor.window[1]) GUIEditor.label[3] = guiCreateLabel(398, 343, 274, 36, "Maxim : 150 Caractere.(Pentru ajutor /ajutordiploma)", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[3], 0, 245, 255) GUIEditor.label[4] = guiCreateLabel(7, 71, 155, 36, "Semnătură Director:", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[4], 0, 245, 255) GUIEditor.label[5] = guiCreateLabel(10, 109, 135, 29, "Semnătură Diriginte/ă:", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[5], 0, 245, 255) GUIEditor.edit[1] = guiCreateEdit(77, 21, 130, 30, "", false, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(121, 64, 133, 32, "", false, GUIEditor.window[1]) GUIEditor.edit[3] = guiCreateEdit(135, 106, 133, 32, "", false, GUIEditor.window[1]) GUIEditor.label[6] = guiCreateLabel(11, 148, 151, 37, "TIP:", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[6], 0, 245, 255) GUIEditor.combobox[1] = guiCreateComboBox(40, 147, 140, 90, "Diplomă Mechanic", false, GUIEditor.window[1]) guiComboBoxAddItem(GUIEditor.combobox[1], "Diplomă Mechanic") guiComboBoxAddItem(GUIEditor.combobox[1], "Diplomă Medic") guiComboBoxAddItem(GUIEditor.combobox[1], "Diplomă Polițist/ă") guiComboBoxAddItem(GUIEditor.combobox[1], "Diplomă Politică") GUIEditor.button[2] = guiCreateButton(194, 150, 140, 41, "Oferă Diploma", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF00F5FF") GUIEditor.label[7] = guiCreateLabel(10, 183, 350, 164, "\n\n((OOC , Acest sistem este încă în teste , dacă găsiți o \nproblemă nu ezitați să contactați un membru staff online!\n\n\n\n Mulțumim de înțelegere!\n\nP.S.Să nu abuzați că vă tai semnat Paul_Dima și \n Cojocaru_Daniel", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[7], "default-bold-small") guiLabelSetColor(GUIEditor.label[7], 0, 245, 255) end function arataDiploma() diploma() if not guiGetVisible(GUIEditor.window[1]) then guiSetVisible(GUIEditor.window[1],true) showCursor(true) end end end addCommandHandler("oferadiploma",arataDiploma)
-
GUIEditor = { label = {}, edit = {}, button = {}, window = {}, combobox = {}, memo = {} } function diploma() local screenW, screenH = guiGetScreenSize() if (getElementData(player,"faction")) == 4 and ( getElementData(player, "factionleader")) then GUIEditor.window[1] = guiCreateWindow((screenW - 666) / 2, (screenH - 384) / 2, 666, 384, "Diplomă Universitate", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF00FFFC") GUIEditor.button[1] = guiCreateButton(257, 347, 137, 27, "Ieși", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000") GUIEditor.label[1] = guiCreateLabel(10, 26, 137, 48, "Nume Elev:", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 0, 255, 252) GUIEditor.memo[1] = guiCreateMemo(181, 4, 20, 20, "", false, GUIEditor.label[1]) GUIEditor.label[2] = guiCreateLabel(254, 32, 149, 31, "Descriere Diplomă:", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[2], 0, 255, 252) GUIEditor.memo[2] = guiCreateMemo(359, 24, 293, 313, "", false, GUIEditor.window[1]) GUIEditor.label[3] = guiCreateLabel(398, 343, 274, 36, "Maxim : 150 Caractere.(Pentru ajutor \n/ajutordiploma)", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[3], 0, 245, 255) GUIEditor.label[4] = guiCreateLabel(7, 71, 155, 36, "Semnătură Director:", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[4], 0, 245, 255) GUIEditor.label[5] = guiCreateLabel(10, 109, 135, 29, "Semnătură Diriginte/ă:", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[5], 0, 245, 255) GUIEditor.edit[1] = guiCreateEdit(77, 21, 130, 30, "", false, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(121, 64, 133, 32, "", false, GUIEditor.window[1]) GUIEditor.edit[3] = guiCreateEdit(135, 106, 133, 32, "", false, GUIEditor.window[1]) GUIEditor.label[6] = guiCreateLabel(11, 148, 151, 37, "TIP:", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[6], 0, 245, 255) GUIEditor.combobox[1] = guiCreateComboBox(40, 147, 140, 90, "Diplomă Mechanic", false, GUIEditor.window[1]) guiComboBoxAddItem(GUIEditor.combobox[1], "Diplomă Mechanic") guiComboBoxAddItem(GUIEditor.combobox[1], "Diplomă Medic") guiComboBoxAddItem(GUIEditor.combobox[1], "Diplomă Polițist/ă") guiComboBoxAddItem(GUIEditor.combobox[1], "Diplomă Politică") GUIEditor.button[2] = guiCreateButton(194, 150, 140, 41, "Oferă Diploma", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF00F5FF") GUIEditor.label[7] = guiCreateLabel(10, 183, 350, 164, "\n\n((OOC , Acest sistem este încă în teste , dacă găsiți o \nproblemă nu ezitați să contactați un membru staff online!\n\n\n\n Mulțumim de înțelegere!\n\nP.S.Să nu abuzați că vă tai semnat Paul_Dima și \n Cojocaru_Daniel", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[7], "default-bold-small") guiLabelSetColor(GUIEditor.label[7], 0, 245, 255) end function arataDiploma() diploma() if not guiGetVisible(GUIEditor.window[1]) then guiSetVisible(GUIEditor.window[1],true) showCursor(true,true) end end end addCommandHandler("oferadiploma",showVehicleSelection)
-
a zorry then you need take his ip and see his country countryNames = { ['AD'] = 'Andorra', ['AE'] = 'United Arab Emirates', ['AF'] = 'Afghanistan', ['AG'] = 'Antigua and Barbuda', ['AI'] = 'Anguilla', ['AL'] = 'Albania', ['AM'] = 'Armenia', ['AO'] = 'Angola', ['AP'] = 'ARIPO', ['AR'] = 'Argentina', ['AT'] = 'Austria', ['AU'] = 'Australia', ['AW'] = 'Aruba', ['AZ'] = 'Azerbaijan', ['BA'] = 'Bosnia and Herzegovina', ['BB'] = 'Barbados', ['BD'] = 'Bangladesh', ['BE'] = 'Belgium', ['BF'] = 'Burkina Faso', ['BG'] = 'Bulgaria', ['BH'] = 'Bahrain', ['BI'] = 'Burundi', ['BJ'] = 'Benin', ['BM'] = 'Bermuda', ['BN'] = 'Brunei Darussalam', ['BO'] = 'Bolivia', ['BQ'] = 'Bonaire', ['BR'] = 'Brazil', ['BS'] = 'Bahamas', ['BT'] = 'Bhutan', ['BV'] = 'Bouvet Island', ['BW'] = 'Botswana', ['BY'] = 'Belarus', ['BZ'] = 'Belize', ['CA'] = 'Canada', ['CD'] = 'Congo', ['CF'] = 'Central African Republic', ['CG'] = 'Congo', ['CH'] = 'Switzerland', ['CI'] = 'Cote d?Ivoire', ['CK'] = 'Cook Islands', ['CL'] = 'Chile', ['CM'] = 'Cameroon', ['CN'] = 'China', ['CO'] = 'Colombia', ['CR'] = 'Costa Rica', ['CU'] = 'Cuba', ['CV'] = 'Cape Verde', ['CW'] = 'Curacao', ['CY'] = 'Cyprus', ['CZ'] = 'Czech Republic', ['DE'] = 'Germany', ['DJ'] = 'Djibouti', ['DK'] = 'Denmark', ['DM'] = 'Dominica', ['DO'] = 'Dominican Republic', ['DZ'] = 'Algeria', ['EC'] = 'Ecuador', ['EE'] = 'Estonia', ['EG'] = 'Egypt', ['EH'] = 'Western Sahara', ['ER'] = 'Eritrea', ['ES'] = 'Spain', ['ET'] = 'Ethiopia', ['FI'] = 'Finland', ['FJ'] = 'Fiji', ['FK'] = 'Malvinas', ['FO'] = 'Faroe Islands', ['FR'] = 'France', ['GA'] = 'Gabon', ['GB'] = 'United Kingdom', ['GD'] = 'Grenada', ['GE'] = 'Georgia', ['GG'] = 'Guernsey', ['GH'] = 'Ghana', ['GI'] = 'Gibraltar', ['GL'] = 'Greenland', ['GM'] = 'Gambia', ['GN'] = 'Guinea', ['GQ'] = 'Equatorial Guinea', ['GR'] = 'Greece', ['GT'] = 'Guatemala', ['GW'] = 'Guinea-Bissau', ['GY'] = 'Guyana', ['HN'] = 'Honduras', ['HR'] = 'Croatia', ['HT'] = 'Haiti', ['HU'] = 'Hungary', ['ID'] = 'Indonesia', ['IE'] = 'Ireland', ['IL'] = 'Palestine', ['IM'] = 'Isle of Man', ['IN'] = 'India', ['IQ'] = 'Iraq', ['IR'] = 'Iran', ['IS'] = 'Iceland', ['IT'] = 'Italy', ['JE'] = 'Jersey', ['JM'] = 'Jamaica', ['JO'] = 'Jordan', ['JP'] = 'Japan', ['KE'] = 'Kenya', ['KG'] = 'Kyrgyzstan', ['KH'] = 'Cambodia', ['KI'] = 'Kiribati', ['KM'] = 'Comoros', ['KN'] = 'Saint Kitts and Nevis', ['KP'] = 'Korea', ['KR'] = 'Korea', ['KW'] = 'Kuwait', ['KY'] = 'Cayman Islands', ['KZ'] = 'Kazakhstan', ['LA'] = 'Lao People?s Republic', ['LB'] = 'Lebanon', ['LC'] = 'Saint Lucia', ['LI'] = 'Liechtenstein', ['LK'] = 'Sri Lanka', ['LR'] = 'Liberia', ['LS'] = 'Lesotho', ['LT'] = 'Lithuania', ['LU'] = 'Luxembourg', ['LV'] = 'Latvia', ['LY'] = 'Libyan Arab Jamahiriya', ['MA'] = 'Morocco', ['MC'] = 'Monaco', ['MD'] = 'Moldova', ['ME'] = 'Montenegro', ['MG'] = 'Madagascar', ['MK'] = 'Macedonia', ['ML'] = 'Mali', ['MM'] = 'Myanmar', ['MN'] = 'Mongolia', ['MO'] = 'Macao', ['MP'] = 'Northern Mariana Islands', ['MR'] = 'Mauritania', ['MS'] = 'Montserrat', ['MT'] = 'Malta', ['MU'] = 'Mauritius', ['MV'] = 'Maldives', ['MW'] = 'Malawi', ['MX'] = 'Mexico', ['MY'] = 'Malaysia', ['MZ'] = 'Mozambique', ['NA'] = 'Namibia', ['NE'] = 'Niger', ['NG'] = 'Nigeria', ['NI'] = 'Nicaragua', ['NL'] = 'Netherlands', ['NO'] = 'Norway', ['NP'] = 'Nepal', ['NR'] = 'Nauru', ['NZ'] = 'New Zealand', ['OM'] = 'Oman', ['PA'] = 'Panama', ['PE'] = 'Peru', ['PG'] = 'Papua New Guinea', ['PH'] = 'Philippines', ['PK'] = 'Pakistan', ['PL'] = 'Poland', ['PT'] = 'Portugal', ['PW'] = 'Palau', ['PY'] = 'Paraguay', ['QA'] = 'Qatar', ['RO'] = 'Romania', ['RS'] = 'Serbia', ['RU'] = 'Russian Federation', ['RW'] = 'Rwanda', ['SA'] = 'Saudi Arabia', ['SB'] = 'Solomon Islands', ['SC'] = 'Seychelles', ['SD'] = 'Sudan', ['SE'] = 'Sweden', ['SG'] = 'Singapore', ['SH'] = 'Saint Helena', ['SI'] = 'Slovenia', ['SK'] = 'Slovakia', ['SL'] = 'Sierra Leone', ['SM'] = 'San Marino', ['SN'] = 'Senegal', ['SO'] = 'Somalia', ['SR'] = 'Suriname', ['ST'] = 'Sao Tome and Principe', ['SV'] = 'Salvador', ['SX'] = 'Sint Maarten (Dutch part)', ['SY'] = 'Syrian Arab Republic', ['SZ'] = 'Swaziland', ['TC'] = 'Turks and Caicos Islands', ['TD'] = 'Chad', ['TG'] = 'Togo', ['TH'] = 'Thailand', ['TJ'] = 'Tajikistan', ['TL'] = 'Timor?Leste', ['TM'] = 'Turkmenistan', ['TN'] = 'Tunisia', ['TO'] = 'Tonga', ['TR'] = 'Turkey', ['TT'] = 'Trinidad and Tobago', ['TV'] = 'Tuvalu', ['TW'] = 'Taiwan', ['TZ'] = 'Tanzania', ['UA'] = 'Ukraine', ['UG'] = 'Uganda', ['US'] = 'United States of America', ['UY'] = 'Uruguay', ['UZ'] = 'Uzbekistan', ['VA'] = 'Holy See', ['VC'] = 'Saint Vincent', ['VE'] = 'Venezuela', ['VG'] = 'Virgin Islands', ['VN'] = 'Viet Nam', ['VU'] = 'Vanuatu', ['WS'] = 'Samoa', ['YE'] = 'Yemen', ['ZA'] = 'South Africa', ['ZZ'] = 'N/A', ['ZM'] = 'Zambia', ['ZW'] = 'Zimbabwe', }; function countryDisplay() local playerCountry = exports['admin']:getPlayerCountry(source) outputChatBox(getPlayerName(source).. "has join from "..countryName(playerCountry), root, 215, 215, 215) end
-
killTimer onVehicleExplode
-
no was client is one client and one server make another lua file @testchannel50