-
Posts
1,546 -
Joined
-
Last visited
Everything posted by Dimos7
-
<meta> <script src ="server.lua" type="server"/> </meta>
-
Show us the meta
-
well it not goint to work like this try this server side car = createVehicle( 411, 0, 0, 1, 0, 0 , 0) function testing(thePlayer) warpPedIntoVehicle(thePlayer, car) end addCommandHandler("w", testing)
-
/me exist from mta itself but you can create costum chat addCommandHandler getPlayerName outputChatBox outputServerLog
-
createObject createColRectangle moveObject you can use that
-
interpolateBetween dxDrawRectangle dxDrawText dxDrawImage
-
first watch some youtube videos may help you or look for someone know the langaunge
-
For me it better use costum mysql so you can see what you store and you can put a password strong so none can stole password etc from account its better and easy
-
I dont think so
-
Probelm with setVehicleEngine and SetVehicleLocked in OnVehicleExit
Dimos7 replied to Tony Brand's topic in Scripting
No server side -
Probelm with setVehicleEngine and SetVehicleLocked in OnVehicleExit
Dimos7 replied to Tony Brand's topic in Scripting
addEventHandler("onVehicleExit", root, function (thePlayer, seat, jacked) if seat ==0 and not jacked then setVehicleEngineState(source, false) setVehicleLocked(source, false) end end ) -
if veh then for i, v in ipairs(getAttachedElements(veh)) do setElementInterior(v, 1) setElementInterior(veh, 1) setElementDimension(veh, getElementData(hitElement, "dbid") + 1000) setElementPosition(veh, -2052.6340332031, 157.98210144043, 28.842931747437) triggerServerEvent("serverAttachBox", localPlayer, localPlayer) end end Try this
-
Well go to your resource where change the interior and put that getAttachedElements and make them so when change interior them change as loop
-
Show us your code to help you
-
Nice work
-
marker = {} marker[1] = createMarker(1906.501953125, -2294.4736328125, 13.75768661499, "corona", 1.5, 100, 0, 100, 100) setElementInterior(marker[1], 56) setElementDimension (marker[1], 44 ) function TelePort(Element, hitElement) for k, v in ipairs(getAttachedElements(Element)) do setElementInterior(v, 0) setElementDimension(v, 0) setElementInterior(Element, 0) setElementDimension (Element, 0) setElementInterior(hitElement, 0) setTimer(setElementInterior, 10, 1, Element, 0) setTimer(setElementInterior, 10, 1, hitElement, 0) setElementPosition(Element, 1335.4150390625, 446.3466796875, 20.284374237061, true) setElementFrozen(Element, true) setTimer(setElementFrozen, 1000, 1,Element, false) setElementRotation ( Element, 0, 0, 248.84687805176 ) end end addEventHandler("onMarkerHit",marker[1], function (player) if getElementType(player)=="player" then local vehicle = getPedOccupiedVehicle(player) if vehicle then local pTeam = getPlayerTeam(player) if pTeam and getTeamName(pTeam) == 'Gendarmerie Royale' then TelePort(vehicle, player) return end outputChatBox ('You are not in this Faction!',player, 255, 0, 0 ) else outputChatBox ('You need to be in Vehicle to enter this Garage!',player, 255, 0, 0 ) end end end) try something like this
-
go to tp script and do getAttachedElements and make it go with the element go to interior
-
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) setElementInterior(Object, getElementInterior(vehicle)) setElementDimension(Object, getElementDimension(vehicle)) else for i,v in ipairs (getAttachedElements(vehicle) ) do detachElements (v, vehicle) setElementData(vehicle, "siren", false) end end end end end addCommandHandler("taxion",undercover) This should work
-
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 for i,v in ipairs (getAttachedElements(vehicle) ) do detachElements (v, vehicle) setElementData(vehicle, "siren", false) end end end end end addCommandHandler("taxion",undercover) Try this
-
dxCreateShader dxCreateTexture dxSetShaderValue engineApplyShaderToWorldTexture
-
dbConnect dbQuery dbPoll dbExec
-
function accounts(_, pAccount) local accName = getAccountName(pAccount) setPlayerName(source, accName) end addEventHandler("onPlayerLogin", root, accounts) addEventHandler("onPlayerChangeNick", root, function(oldNick, newNick) cancelEvent() end )
-
As I said you need store the serial to a database