Jump to content

Dimos7

Members
  • Posts

    1,546
  • Joined

  • Last visited

Everything posted by Dimos7

  1. <meta> <script src ="server.lua" type="server"/> </meta>
  2. 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)
  3. Dimos7

    Command RP

    /me exist from mta itself but you can create costum chat addCommandHandler getPlayerName outputChatBox outputServerLog
  4. createObject createColRectangle moveObject you can use that
  5. Dimos7

    Login Panel

    interpolateBetween dxDrawRectangle dxDrawText dxDrawImage
  6. first watch some youtube videos may help you or look for someone know the langaunge
  7. 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
  8. addEventHandler("onVehicleExit", root, function (thePlayer, seat, jacked) if seat ==0 and not jacked then setVehicleEngineState(source, false) setVehicleLocked(source, false) end end )
  9. 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
  10. Well go to your resource where change the interior and put that getAttachedElements and make them so when change interior them change as loop
  11. Show us your code to help you
  12. 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
  13. go to tp script and do getAttachedElements and make it go with the element go to interior
  14. 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
  15. 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
  16. dxCreateShader dxCreateTexture dxSetShaderValue engineApplyShaderToWorldTexture
  17. dbConnect dbQuery dbPoll dbExec
  18. Dimos7

    enter nicki [help

    function accounts(_, pAccount) local accName = getAccountName(pAccount) setPlayerName(source, accName) end addEventHandler("onPlayerLogin", root, accounts) addEventHandler("onPlayerChangeNick", root, function(oldNick, newNick) cancelEvent() end )
  19. As I said you need store the serial to a database
×
×
  • Create New...