Jump to content

Help me pls at Interiors


K4stic

Recommended Posts

Maybe this could help:
getElementInterior 

Try something like this to get the players interior:

local interior = getElementInterior(thePlayer)

outputChatBox("This player is in interior:"..interior, thePlayer, 255, 255, 0)

That's not what he wanted. He wanted a script that would trigger only when a player has changed interior. For example, I change interior from 0 to 1, it would trigger something in his code. But there is no direct way to do this unless you had your own interior system, which would handle all interior changes itself.

Link to comment

will i think you'll use dxDrawText then check of the player interior as @Ab-47 said

Ex:

function getHisInterior(thePlayer) 
local i = getElementInterior(thePlayer) 
  
local dxDrawText("he is in ".. i .." interior !",815,125,988,188, tocolor(0, 200, 0, 255), 1, "default-bold", "left", "top", false, false, false) 
end 
addEventHandler( "onClientResourceStart", resourceRoot, getHisInterior) 

Link to comment
will i think you'll use dxDrawText then check of the player interior as @Ab-47 said

Ex:

function getHisInterior(thePlayer) 
local i = getElementInterior(thePlayer) 
  
local dxDrawText("he is in ".. i .." interior !",815,125,988,188, tocolor(0, 200, 0, 255), 1, "default-bold", "left", "top", false, false, false) 
end 
addEventHandler( "onClientResourceStart", resourceRoot, getHisInterior) 

Once again, he did not ask for that. Secondly, your code makes no sense and is absolutely irrelevant to the issue. Read replies before posting, honestly.

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