
LyricalMM
Members-
Posts
81 -
Joined
-
Last visited
Everything posted by LyricalMM
-
function undercover (player) local vehicle = getPedOccupiedVehicle(player) local id = getElementModel(vehicle) local siren = getElementData(vehicle, "siren") if isPedInVehicle(player) then if id == 560 then if not siren then local Object = createObject(1668,5,5,5) attachElements ( Object, vehicle, -0.4, 0.5, 0.868 ) setElementData(vehicle, "siren", true) else local attachedElements = #getAttachedElements (vehicle) for i,v in ipairs (attachedElements) do detachElements (v, vehicle) setElementData(vehicle, "siren", false) end end end end end addCommandHandler("taxion",undercover) try this or you can make a function to getVehicleByType, then make a db reference
-
Problema la intrarea in joc
LyricalMM replied to george412_'s topic in Probleme legate de MTA Client/Server
poti raporta catre detinatorul serverului. Asta depinde de memoria pe care o descarci la inceputul jocului. -
Problema la intrarea in joc
LyricalMM replied to george412_'s topic in Probleme legate de MTA Client/Server
Asta depinde de la server la server, poate fi de la conexiune, poate fi de la tine. Incearca pe alte servere sau reinstaleaza MTA. -
worldobject group multiple world objects more than one at a time
LyricalMM replied to skatefilter5's topic in Scripting
Currently in map editor, multiple objects selected is not possible. You can download J Cody's map editor, you cand find it at the resources forum -
It is like the same that i gave him
-
for example function getAdmins() local players = #getElementsByType("player") local admins = { } local accName = getAccountName ( getPlayerAccount ( value ) ) for key, value in ipairs(players) do if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then table.insert(admins,value) end end return admins end and local players = exports.yourScript:getAdmins() for k, arrayPlayer in ipairs(players) do if --your condition if it's admin-- then --your code end end
-
The problem is that you put the variable "thePlayer" and that shows only to you if you are an admin, you need to get other player names and if the other players are admins.
-
d destroyElement(i) i don't know if it works, but u can try
-
i can't make a full script for you but you cand try with: createPed createVehicle warpPedIntoVehicle setPedControlState and copy the script from slothbot with following
-
local x,y,z = 1, 1, 1 setElementPosition(source, 0, 3400, z)
-
use: player = getLocalPlayer() team = getPlayerTeam(player) teamName = getTeamName(team) if (teamName == "FCPD") then --Your code end
-
this is a script questions section not script requests, so please learn coding and try to connect things.
-
put the meta.xml of the factions resource
-
disable the default chat script and make one of your own with outputChatBox and custom colors
-
you can't just make a default respawn vehicle, that depends on you vehicle resource but you can make it with getElementPosition --You can park it getElementData setElementPosition setElementData
-
the last tought i have is that is something wrong in your showNewInventory function
-
well your script is serverside?
-
Code? Maybe you didn't put the params corectly idk