Jump to content

[HELP] How to make interior?


Recommended Posts

Posted
function pdEnter()
local pdMarker = createMarker(-2596.625, 579.358, 15.626, 'cylinder', 2.0, 255, 0, 0, 150) -- set coordinates to be in front of the Police Departement
 setElementInterior(source, 5, 322.72, 306.43, 999.15 
end
addEventHandler( "onMarkerHit", pdMarker, pdEnter )

Don't forget the thanks reaction if it helped

  • Thanks 1
Posted

@Galactix im stopped the admin resource and use /setskin

my skin not set and error is

[2018-07-10 13:15:21] ERROR: SetSkin\server.lua:25: attempt to call global 'findPlayer' (a nil value)

 

and my server side is

 

addCommandHandler('setskin',function(source,_,player,skinid)
    local find = findPlayer( player ) 
    if find then
           local playerAccount = getPlayerAccount(source)
           local accName = getAccountName ( playerAccount )
         if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then       
               setElementModel ( find, skinid )
               outputChatBox("[PirateGaming] Your skin was changed to "..skinid.." by the admin "..accName.."!", find)
        else
            outputChatBox("You are not allowed to use this command!", source, 255,0,0)
        end
      else
      outputChatBox("Player not found!", source, 255,0,0)
    end
 end)

Posted
15 hours ago, Galactix said:

function pdEnter()
local pdMarker = createMarker(-2596.625, 579.358, 15.626, 'cylinder', 2.0, 255, 0, 0, 150) -- set coordinates to be in front of the Police Departement
 setElementInterior(source, 5, 322.72, 306.43, 999.15 
end
addEventHandler( "onMarkerHit", pdMarker, pdEnter )

Don't forget the thanks reaction if it helped

not working :(

 

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...