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

If I helped you, make sure you click the reaction button on the right to support me!
It will grant me more visibility and will help me to help others!

If you have any kind of request or subject you would like to discuss about with me,
don't hesitate to send me a private message about it!

 

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

You need to do /setskin player skinid 

If I helped you, make sure you click the reaction button on the right to support me!
It will grant me more visibility and will help me to help others!

If you have any kind of request or subject you would like to discuss about with me,
don't hesitate to send me a private message about it!

 

Posted

If you provide a player argument then the findPlayer wouldn’t output an error unless you didn’t put any or if the player isn’t online

If I helped you, make sure you click the reaction button on the right to support me!
It will grant me more visibility and will help me to help others!

If you have any kind of request or subject you would like to discuss about with me,
don't hesitate to send me a private message about it!

 

Posted

If you write /setskin MRThinker 1

it would work

If I helped you, make sure you click the reaction button on the right to support me!
It will grant me more visibility and will help me to help others!

If you have any kind of request or subject you would like to discuss about with me,
don't hesitate to send me a private message about it!

 

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