Jump to content

Modifications for "interiors"


dragonofdark

Recommended Posts

Posted

Hello,

I want to add some modifications for "Interiors" resource. So could you tell me how to :

- Change the marker ? I saw on Valhalla that the markers are more small and white.

- When we touch the markers, we need to push on "i.e. : Return" to enter in interior. ?

- Enter in interior (i.e.: A garage) with a vehicule ?

I have also a problem when i place the marquers with the Map Editor... I can't see the marquers on it.

Well, Thanks a lot in advance,

dragonofdark

Posted

Hm... I'm trying to modify the resource and i have changed this :

function colshapeHit( player, matchingDimension ) 
    if getElementType ( player ) ~= "player" then return end 
    if player ~= localPlayer then return end 
    if ( not matchingDimension ) or  
    ( doesPedHaveJetPack ( player ) ) or  
    ( getControlState ( "aim_weapon" ) ) or ( blockPlayer )  
    then return end 
    local interior = interiorFromCol[source] 
    local id = getElementData ( interior, idLoc[getElementType(interior)] )  
    local resource = resourceFromInterior[interior] 
    eventCanceled = triggerEvent ( "onClientInteriorHit", interior ) 
    if ( eventCanceled ) then 
        triggerServerEvent ( "doTriggerServerEvents", localPlayer, interior, getResourceName(resource), id ) 
    end 
end 

Now when I pass with a vehicle that do like if I enter in interior but I respawn to the marker :/

That don't do that without vehicle...

________

For the modification of the marker, I think I have find the lines but I son't know how to change them... There aren't any ID.

        local marker1 = createMarker ( retX, retY, retZ + 2.2, "arrow", 2, 255, 255, 0, 200 ) 

In the Map Editor, I search the object "arrow" but this one is white like in Valhalla. ID : 1318

Posted

tbh i didnt know about it eighter :D i was looking through functions list and was looking into another scripts :P

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

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