Jump to content

استفسار بسيط !


Mando

Recommended Posts

السلام عليكم ورحمة الله وبركاتة

انا عمل مود

بس المشكلة انه

لوحة السيارات تفتح للكل + اذا انا معي السيارة واحد تاني يجي ياخد السيارة تنسحب مني !!

+ العلامات اللي في الخريطة تظهر لكل الاعبين

انا عايز اعرف اية المشكلة اللي يخليهم كدا ؟

يعني في كود خطأ ولا لا

اعذروني اني ماحطيت المود لان في ناس تاخدها وتركبها ويكتبو By ....

ياريت اي حد يرد من المبرمجين

واذا يبون السكربت راح ارسله خاص

وياريت تضيفو خاصية

ان لو ابي الرابط او الكود يظهر لشخص معين في المنتدي

او مايشوفه غير المشرفين

Link to comment

اسف ي خوي

  
GUIEditor_Window = {} 
    GUIEditor_Button = {} 
    GUIEditor_Grid = {} 
          
    car = { 
            {420} 
    }   
    local occupation = "TaxiDriver" 
    local marker = createMarker( -1405.4761962891, -309.70367431641, 14.1484375, "cylinder", 1.5, 255 ,255, 255, 155) 
      
      
    GUIEditor_Window[1] = guiCreateWindow(312,152,165,339,"vehicle",false) 
    guiSetVisible(GUIEditor_Window[1],false) 
    GUIEditor_Grid[1] = guiCreateGridList(9,19,147,274,false,GUIEditor_Window[1]) 
    guiGridListSetSelectionMode(GUIEditor_Grid[1],2) 
    guiGridListAddColumn(GUIEditor_Grid[1],"vehicle name",60) 
    GUIEditor_Button[1] = guiCreateButton(9,296,69,34,"ok",false,GUIEditor_Window[1]) 
    GUIEditor_Button[2] = guiCreateButton(86,296,70,34,"close",false,GUIEditor_Window[1]) 
      
    for i,v in ipairs (car) do 
            local carName = getVehicleNameFromModel (v[1]) 
            local row = guiGridListAddRow (GUIEditor_Grid[1]) 
                guiGridListSetItemText (GUIEditor_Grid[1], row, 1, carName, false, true) 
    end 
      
    function onClientClick (button, state, absoluteX, absoluteYe) 
            if (source == GUIEditor_Button[1]) then 
                    if (guiGridListGetSelectedItem (GUIEditor_Grid[1])) then 
                      local cars = guiGridListGetItemText (GUIEditor_Grid[1], guiGridListGetSelectedItem (GUIEditor_Grid[1]), 1) 
                      triggerServerEvent ("cars", getLocalPlayer(), cars) 
                    end 
            end 
    end 
    addEventHandler ("onClientGUIClick", GUIEditor_Button[1], onClientClick) 
      
    function onClientClick (button, state, absoluteX, absoluteYe) 
            if (source == GUIEditor_Button[2]) then 
                    guiSetVisible(GUIEditor_Window[1],false) 
                    showCursor(false) 
            end 
    end 
    addEventHandler ("onClientGUIClick", GUIEditor_Button[2], onClientClick) 
      
     addEventHandler("onClientMarkerHit", marker, 
            function ( hitPlayer, matchingDimension ) 
                    if ( isElementWithinMarker(hitPlayer, marker) ) then 
                               if getElementData(getLocalPlayer(), "Occupation") == "TaxiDriver" then 
                                    if getElementType(hitPlayer) == "player" then 
                                            guiSetVisible ( GUIEditor_Window[1], true ) 
                                            showCursor(true) 
                                    end 
                            else 
                                    outputChatBox ( "you are not in the team", player, 255, 0, 0, true ) 
                            end 
                    end 
            end 
    ) 

هذه كود السيارات تقدر تخليه يفتح له هو بس ؟

Link to comment

جرب

GUIEditor_Window = {} 
    GUIEditor_Button = {} 
    GUIEditor_Grid = {} 
          
    car = { 
            {420} 
    }   
    local occupation = "TaxiDriver" 
    local marker = createMarker( -1405.4761962891, -309.70367431641, 14.1484375, "cylinder", 1.5, 255 ,255, 255, 155) 
      
      
    GUIEditor_Window[1] = guiCreateWindow(312,152,165,339,"vehicle",false) 
    guiSetVisible(GUIEditor_Window[1],false) 
    GUIEditor_Grid[1] = guiCreateGridList(9,19,147,274,false,GUIEditor_Window[1]) 
    guiGridListSetSelectionMode(GUIEditor_Grid[1],2) 
    guiGridListAddColumn(GUIEditor_Grid[1],"vehicle name",60) 
    GUIEditor_Button[1] = guiCreateButton(9,296,69,34,"ok",false,GUIEditor_Window[1]) 
    GUIEditor_Button[2] = guiCreateButton(86,296,70,34,"close",false,GUIEditor_Window[1]) 
      
    for i,v in ipairs (car) do 
            local carName = getVehicleNameFromModel (v[1]) 
            local row = guiGridListAddRow (GUIEditor_Grid[1]) 
                guiGridListSetItemText (GUIEditor_Grid[1], row, 1, carName, false, true) 
    end 
      
    function onClientClick (button, state, absoluteX, absoluteYe) 
            if (source == GUIEditor_Button[1]) then 
                    if (guiGridListGetSelectedItem (GUIEditor_Grid[1])) then 
                      local cars = guiGridListGetItemText (GUIEditor_Grid[1], guiGridListGetSelectedItem (GUIEditor_Grid[1]), 1) 
                      triggerServerEvent ("cars", getLocalPlayer(), cars) 
                    end 
            end 
    end 
    addEventHandler ("onClientGUIClick", GUIEditor_Button[1], onClientClick) 
      
    function onClientClick (button, state, absoluteX, absoluteYe) 
            if (source == GUIEditor_Button[2]) then 
                    guiSetVisible(GUIEditor_Window[1],false) 
                    showCursor(false) 
            end 
    end 
    addEventHandler ("onClientGUIClick", GUIEditor_Button[2], onClientClick) 
      
   addEventHandler("onClientMarkerHit", marker, 
       function ( hitPlayer, matchingDimension ) 
            if ( hitPlayer == localPlayer ) then 
            if getElementData(getLocalPlayer(), "Occupation") == "TaxiDriver" then 
                   guiSetVisible ( GUIEditor_Window[1], true ) 
                   showCursor(true) 
                   end 
           else 
             outputChatBox ( "you are not in the team", player, 255, 0, 0, true ) 
         end 
    end 
) 

Link to comment
جرب
GUIEditor_Window = {} 
    GUIEditor_Button = {} 
    GUIEditor_Grid = {} 
          
    car = { 
            {420} 
    }   
    local occupation = "TaxiDriver" 
    local marker = createMarker( -1405.4761962891, -309.70367431641, 14.1484375, "cylinder", 1.5, 255 ,255, 255, 155) 
      
      
    GUIEditor_Window[1] = guiCreateWindow(312,152,165,339,"vehicle",false) 
    guiSetVisible(GUIEditor_Window[1],false) 
    GUIEditor_Grid[1] = guiCreateGridList(9,19,147,274,false,GUIEditor_Window[1]) 
    guiGridListSetSelectionMode(GUIEditor_Grid[1],2) 
    guiGridListAddColumn(GUIEditor_Grid[1],"vehicle name",60) 
    GUIEditor_Button[1] = guiCreateButton(9,296,69,34,"ok",false,GUIEditor_Window[1]) 
    GUIEditor_Button[2] = guiCreateButton(86,296,70,34,"close",false,GUIEditor_Window[1]) 
      
    for i,v in ipairs (car) do 
            local carName = getVehicleNameFromModel (v[1]) 
            local row = guiGridListAddRow (GUIEditor_Grid[1]) 
                guiGridListSetItemText (GUIEditor_Grid[1], row, 1, carName, false, true) 
    end 
      
    function onClientClick (button, state, absoluteX, absoluteYe) 
            if (source == GUIEditor_Button[1]) then 
                    if (guiGridListGetSelectedItem (GUIEditor_Grid[1])) then 
                      local cars = guiGridListGetItemText (GUIEditor_Grid[1], guiGridListGetSelectedItem (GUIEditor_Grid[1]), 1) 
                      triggerServerEvent ("cars", getLocalPlayer(), cars) 
                    end 
            end 
    end 
    addEventHandler ("onClientGUIClick", GUIEditor_Button[1], onClientClick) 
      
    function onClientClick (button, state, absoluteX, absoluteYe) 
            if (source == GUIEditor_Button[2]) then 
                    guiSetVisible(GUIEditor_Window[1],false) 
                    showCursor(false) 
            end 
    end 
    addEventHandler ("onClientGUIClick", GUIEditor_Button[2], onClientClick) 
      
   addEventHandler("onClientMarkerHit", marker, 
       function ( hitPlayer, matchingDimension ) 
            if ( hitPlayer == localPlayer ) then 
            if getElementData(getLocalPlayer(), "Occupation") == "TaxiDriver" then 
                   guiSetVisible ( GUIEditor_Window[1], true ) 
                   showCursor(true) 
                   end 
           else 
             outputChatBox ( "you are not in the team", player, 255, 0, 0, true ) 
         end 
    end 
) 

حلو بس في مشكلة

لو انا اخذت التاكسي

واحد تاني اخذ تاكسي ينسحب مني :(

Link to comment
اطرح ملف السيرفر
addEvent ("cars", true) 
addEventHandler ("cars", getRootElement(), 
    function(cars) 
                if isElement( veh ) then destroyElement( veh ) end 
                        local cn = getVehicleModelFromName (cars) 
                        local cn2 = getVehicleNameFromModel (cn) 
                        veh = createVehicle(cn, -1404.1120605469,-316.19134521484,13.749) 
                        setVehicleColor(veh, 255, 255, 0) 
                        warpPedIntoVehicle(source, veh)        
    end 
) 

Link to comment

جـرب *

local vehicle = {} 
addEvent ("cars", true) 
addEventHandler ("cars", getRootElement(), 
    function() 
                if isElement( vehicle[source] ) then destroyElement( vehicle[source] ) end 
                        local vehicle[source] = getVehicleModelFromName (vehicle[source]) 
                        local vehicle[source] = getVehicleNameFromModel (vehicle[source]) 
                        vehicle[source] = createVehicle(vehicle[source], -1404.1120605469,-316.19134521484,13.749) 
                        setVehicleColor(vehicle[source], 255, 255, 0) 
                        warpPedIntoVehicle(source, vehicle[source])        
    end 
) 
Link to comment
جـرب *

local vehicle = {} 
addEvent ("cars", true) 
addEventHandler ("cars", getRootElement(), 
    function() 
                if isElement( vehicle[source] ) then destroyElement( vehicle[source] ) end 
                        local vehicle[source] = getVehicleModelFromName (vehicle[source]) 
                        local vehicle[source] = getVehicleNameFromModel (vehicle[source]) 
                        vehicle[source] = createVehicle(vehicle[source], -1404.1120605469,-316.19134521484,13.749) 
                        setVehicleColor(vehicle[source], 255, 255, 0) 
                        warpPedIntoVehicle(source, vehicle[source])        
    end 
) 

لا استطيع اخذ سيارة !

Link to comment

جـرب * الأن *

local vehicle = {} 
addEvent ('cars', true) 
addEventHandler ('cars', root, 
function(cars) 
    if isElement( vehicle[source] ) then destroyElement( vehicle[source] ) end 
        local cn = getVehicleModelFromName (cars) 
        local cn2 = getVehicleNameFromModel (cn) 
        vehicle[source] = createVehicle(cn, -1404.1120605469,-316.19134521484,13.749) 
        setVehicleColor(vehicle[source], 255, 255, 0) 
        warpPedIntoVehicle(source, vehicle[source])        
    end 
) 
Link to comment
جـرب * الأن *

local vehicle = {} 
addEvent ('cars', true) 
addEventHandler ('cars', root, 
function(cars) 
    if isElement( vehicle[source] ) then destroyElement( vehicle[source] ) end 
        local cn = getVehicleModelFromName (cars) 
        local cn2 = getVehicleNameFromModel (cn) 
        vehicle[source] = createVehicle(cn, -1404.1120605469,-316.19134521484,13.749) 
        setVehicleColor(vehicle[source], 255, 255, 0) 
        warpPedIntoVehicle(source, vehicle[source])        
    end 
) 

كفو 8)

اشتغل بس في مشكلة عندي في المود

العلامات اللي في الخريطة عشان يوصل الناس تظهر للكل - ومثلآ انت في شرطي والمركر جنبك انت تاخد فلوس وهو لا

انا ابيه له هو فقط

كيف ؟؟

Link to comment
جـرب * الأن *

local vehicle = {} 
addEvent ('cars', true) 
addEventHandler ('cars', root, 
function(cars) 
    if isElement( vehicle[source] ) then destroyElement( vehicle[source] ) end 
        local cn = getVehicleModelFromName (cars) 
        local cn2 = getVehicleNameFromModel (cn) 
        vehicle[source] = createVehicle(cn, -1404.1120605469,-316.19134521484,13.749) 
        setVehicleColor(vehicle[source], 255, 255, 0) 
        warpPedIntoVehicle(source, vehicle[source])        
    end 
) 

كفو 8)

اشتغل بس في مشكلة عندي في المود

العلامات اللي في الخريطة عشان يوصل الناس تظهر للكل - ومثلآ انت في شرطي والمركر جنبك انت تاخد فلوس وهو لا

انا ابيه له هو فقط

كيف ؟؟

اطرح الاكواد

Link to comment

Server *

  
  
local pickups = { 
[1]={ -1397.3532714844, - 327.68801879883, 14 }, 
[2]={ 2162.0393066406, 1680.4851074219, 10.8203125 }, 
[3]={ 1816.2468261719, -1902.5074462891, 13.564742088318 }, 
} 
  
local dropoffss = { 
[1]={ 2079.2690429688, 1519.7746582031, 10.82003125, }, 
[2]={ 1481.6596679688, -1737.782470703,13.546875, }, 
[3]={ -1997.6879882813, 283.61083984375, 33.614753723145, }, 
} 
  
  
  
local pedCus = { 
[1]={ 9 }, 
[2]={ 13 }, 
[3]={ 31 }, 
[4]={ 41 }, 
[5]={ 56 }, 
[6]={ 0 }, 
[7]={ 14 }, 
[8]={ 15 }, 
[9]={ 19 }, 
[10]={ 18 }, 
} 
  
  
  
  
  
Teame = createTeam("CilivianWorks", 255,255,0) 
  
  
  
taxiTeams = { [Teame] = true } 
taxiVehs = { [420] = true } 
  
function teamSet ( ) 
    local team = getTeamFromName ( "CilivianWorks" ) 
    if team then 
        setPlayerTeam ( source, team ) 
        setElementData( source, "Occupation", "TaxiDriver", true ) 
        setPlayerNametagColor ( source, 255,255,0 ) 
            setElementModel(source, 57) 
            outputChatBox("You are now employed as a Taxi Driver!", thePlayer) 
        else 
            local teamw = getTeamFromName ( "Taxi Driver" ) 
            if teamw then 
            cancelEvent() 
            outputChatBox("You are already a Taxi driver!", source) 
        end 
    end 
end 
addEvent ( "sTeame", true) 
addEventHandler ( "sTeame", root, teamSet ) 
  
markers = { } 
blips = { } 
peds = { } 
mposi = { } 
mposii = {} 
  
  
  
  
function startJob ( thePlayer ) 
    local x, y, z = unpack ( pickups [ math.random ( #pickups ) ] ) 
    markers [ thePlayer ] = createMarker ( x, y, z, "cylinder", 5.0, 255, 0, 0, 0 ) 
    mposi = { getElementPosition( markers [ thePlayer ] ) } 
    local skins = unpack ( pedCus [ math.random ( #pedCus ) ] ) 
    peds [ thePlayer ] = createPed( skins, x, y, z )   
    blips [ thePlayer ] = createBlipAttachedTo ( markers [ thePlayer ], 60 ) 
    addEventHandler ( "onMarkerHit", markers [ thePlayer ], warpit ) 
    end 
  
function inVEH ( thePlayer ) 
    if ( getElementType ( thePlayer ) == "player" and isPedInVehicle ( thePlayer ) ) then 
        if ( getElementModel ( source ) == 420 ) then 
            startJob ( thePlayer ) 
        end 
    end 
end 
addEventHandler ( "onVehicleEnter", getRootElement(), inVEH ) 
  
function warpit ( thePlayer ) 
    if ( getElementType ( thePlayer ) == "player" and isPedInVehicle ( thePlayer ) ) then 
       local vehiclee = getPedOccupiedVehicle ( thePlayer ) 
        if ( getElementModel ( vehiclee ) == 420 ) then 
            setTimer ( warpPedIntoVehicle, 2000, 1, peds [ thePlayer ], vehiclee, 2 ) 
            destroyJob ( thePlayer ) 
            local x, y, z = unpack ( dropoffss [ math.random ( #dropoffss ) ] ) 
            markers [ thePlayer ] = createMarker ( x, y, z - 1, "cylinder", 5.0, 255, 0, 0, 50 ) 
            mposii = { getElementPosition( markers [ thePlayer ] ) } 
            blips [ thePlayer ] = createBlipAttachedTo ( markers [ thePlayer ], 19 ) 
            addEventHandler ( "onMarkerHit", markers [ thePlayer ], pickmeup ) 
            end 
            end 
        end 
  
  
function pickmeup ( thePlayer ) 
    if ( getElementType ( thePlayer ) == "player" and isPedInVehicle ( thePlayer ) ) then 
        destroyJob ( thePlayer ) 
        local mx, my, mz = unpack ( mposi ) 
        local mmx, mmy, mmz = unpack ( mposii ) 
        local money = getDistanceBetweenPoints2D ( mx, my, mmx, mmy ) 
        finalmoney = math.floor ( money ) 
        if finalmoney then 
        setTimer( givePlayerMoney, 3000, 1, thePlayer, finalmoney ) 
        setTimer( outputChatBox, 3000, 1, thePlayer, "You have earned ".. money .."!", 0, 144, 0) 
        setTimer ( 
            function ( ) 
                if ( isElement ( peds [ thePlayer ] ) ) then 
                    destroyElement ( peds [ thePlayer ] ) 
                end 
                startJob ( thePlayer ) 
            end 
            ,3000, 1 
        ) 
            end 
        end 
    end 
  
function deleteOnExit ( thePlayer ) 
    if ( isElement ( markers [ thePlayer ] ) ) then 
        destroyElement ( markers [ thePlayer ] ) 
    end 
    if ( isElement ( blips [ thePlayer ] ) ) then 
        destroyElement ( blips [ thePlayer ] ) 
    end 
    if ( isElement ( peds [ thePlayer ] ) ) then 
        destroyElement ( peds [ thePlayer ] ) 
    end 
end 
addEventHandler ( "onVehicleExit", getRootElement(), deleteOnExit ) 
  
  
function destroyJob ( thePlayer ) 
    if ( isElement ( markers [ thePlayer ] ) ) then 
        destroyElement ( markers [ thePlayer ] ) 
    end 
    if ( isElement ( blips [ thePlayer ] ) ) then 
        destroyElement( blips [ thePlayer ] ) 
    end 
end 
  
function consoleSetPlayerPosition ( source, commandName, posX, posY, posZ ) 
    setElementPosition ( source, posX, posY, posZ ) 
end 
addCommandHandler ( "setpos", consoleSetPlayerPosition  ) 

Link to comment

جـرب *

 local pickups = { 
[1]={ -1397.3532714844, - 327.68801879883, 14 }, 
[2]={ 2162.0393066406, 1680.4851074219, 10.8203125 }, 
[3]={ 1816.2468261719, -1902.5074462891, 13.564742088318 }, 
} 
  
local dropoffss = { 
[1]={ 2079.2690429688, 1519.7746582031, 10.82003125, }, 
[2]={ 1481.6596679688, -1737.782470703,13.546875, }, 
[3]={ -1997.6879882813, 283.61083984375, 33.614753723145, }, 
} 
  
local pedCus = { 
[1]={ 9 }, 
[2]={ 13 }, 
[3]={ 31 }, 
[4]={ 41 }, 
[5]={ 56 }, 
[6]={ 0 }, 
[7]={ 14 }, 
[8]={ 15 }, 
[9]={ 19 }, 
[10]={ 18 }, 
} 
  
Teame = createTeam("CilivianWorks", 255,255,0) 
  
taxiTeams = { [Teame] = true } 
taxiVehs = { [420] = true } 
  
function teamSet ( ) 
    local team = getTeamFromName ( "CilivianWorks" ) 
    if team then 
        setPlayerTeam ( source, team ) 
        setElementData( source, "Occupation", "TaxiDriver", true ) 
        setPlayerNametagColor ( source, 255,255,0 ) 
            setElementModel(source, 57) 
            outputChatBox("You are now employed as a Taxi Driver!", source, 255, 0, 0, true) 
        else 
            local teamw = getTeamFromName ( "Taxi Driver" ) 
            if teamw then 
            cancelEvent() 
            outputChatBox("You are already a Taxi driver!", source, 255, 255, 0, true) 
        end 
    end 
end 
addEvent ( "sTeame", true) 
addEventHandler ( "sTeame", root, teamSet ) 
  
markers = { } 
blips = { } 
peds = { } 
mposi = { } 
mposii = {} 
  
  
  
  
function startJob ( thePlayer ) 
    local x, y, z = unpack ( pickups [ math.random ( #pickups ) ] ) 
    markers [ thePlayer ] = createMarker ( x, y, z, "cylinder", 5.0, 255, 0, 0, 0 ) 
    mposi = { getElementPosition( markers [ thePlayer ] ) } 
    local skins = unpack ( pedCus [ math.random ( #pedCus ) ] ) 
    peds [ thePlayer ] = createPed( skins, x, y, z )   
    blips [ source ] = createBlipAttachedTo ( markers [ source ], 60 ) 
    addEventHandler ( "onMarkerHit", markers [ thePlayer ], warpit ) 
    end 
  
function inVEH ( thePlayer ) 
    if ( getElementType ( thePlayer ) == "player" and isPedInVehicle ( thePlayer ) ) then 
        if ( getElementModel ( source ) == 420 ) then 
            startJob ( thePlayer ) 
        end 
    end 
end 
addEventHandler ( "onVehicleEnter", getRootElement(), inVEH ) 
  
function warpit ( thePlayer ) 
    if ( getElementType ( thePlayer ) == "player" and isPedInVehicle ( thePlayer ) ) then 
       local vehiclee = getPedOccupiedVehicle ( thePlayer ) 
        if ( getElementModel ( vehiclee ) == 420 ) then 
            setTimer ( warpPedIntoVehicle, 2000, 1, peds [ thePlayer ], vehiclee, 2 ) 
            destroyJob ( thePlayer ) 
            local x, y, z = unpack ( dropoffss [ math.random ( #dropoffss ) ] ) 
            markers [ thePlayer ] = createMarker ( x, y, z - 1, "cylinder", 5.0, 255, 0, 0, 50 ) 
            mposii = { getElementPosition( markers [ thePlayer ] ) } 
            blips [ source ] = createBlipAttachedTo ( markers [ source ], 19 ) 
            addEventHandler ( "onMarkerHit", markers [ thePlayer ], pickmeup ) 
            end 
            end 
        end 
  
  
function pickmeup ( thePlayer ) 
    if ( getElementType ( thePlayer ) == "player" and isPedInVehicle ( thePlayer ) ) then 
        destroyJob ( thePlayer ) 
        local mx, my, mz = unpack ( mposi ) 
        local mmx, mmy, mmz = unpack ( mposii ) 
        local money = getDistanceBetweenPoints2D ( mx, my, mmx, mmy ) 
        finalmoney = math.floor ( money ) 
        if finalmoney then 
        setTimer( givePlayerMoney, 3000, 1, source, finalmoney ) 
        setTimer( outputChatBox, 3000, 1, source, "You have earned ".. money .."!", 0, 144, 0) 
        setTimer ( 
            function ( ) 
                if ( isElement ( peds [ thePlayer ] ) ) then 
                    destroyElement ( peds [ thePlayer ] ) 
                end 
                startJob ( thePlayer ) 
            end 
            ,3000, 1 
        ) 
            end 
        end 
    end 
  
function deleteOnExit ( thePlayer ) 
    if ( isElement ( markers [ thePlayer ] ) ) then 
        destroyElement ( markers [ thePlayer ] ) 
    end 
    if ( isElement ( blips [ source ] ) ) then 
        destroyElement ( blips [ source ] ) 
    end 
    if ( isElement ( peds [ thePlayer ] ) ) then 
        destroyElement ( peds [ thePlayer ] ) 
    end 
end 
addEventHandler ( "onVehicleExit", getRootElement(), deleteOnExit ) 
  
  
function destroyJob ( thePlayer ) 
    if ( isElement ( markers [ thePlayer ] ) ) then 
        destroyElement ( markers [ thePlayer ] ) 
    end 
    if ( isElement ( blips [ source ] ) ) then 
        destroyElement( blips [ source ] ) 
    end 
end 
  
function consoleSetPlayerPosition ( source, commandName, posX, posY, posZ ) 
    setElementPosition ( source, posX, posY, posZ ) 
end 
addCommandHandler ( "setpos", consoleSetPlayerPosition  ) 

* #

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...