Log in to reply
 

Fleeca Bank Robbery Script - Unsafe function assistance.



  • I have editted the source code on this https://www.gta5-mods.com/scripts/robfleeca

    Here is the source code for my edit - https://pastebin.com/7hwEQLaY

    For some reason I am getting this error: "Unsafe code may only appear if compiling with /unsafe"

    For this function

    "unsafe
    {
    int seq = 0;
    GTA.Native.Function.Call(Hash.OPEN_SEQUENCE_TASK, &seq);

                                Function.Call(Hash.TASK_PLAY_ANIM, 0, "ped", "handsup", 4.0f, .0f, -1, 49, .0f, 0, 0, 0);
    
                                Function.Call(Hash.TASK_GO_STRAIGHT_TO_COORD, 0, Teller_Walk_Locations1[Robs[0].List_Index].X, Teller_Walk_Locations1[Robs[0].List_Index].Y, Teller_Walk_Locations1[Robs[0].List_Index].Z, 1.0f, -1, Teller_Heading[Robs[0].List_Index] + 100.0f, -.1f);
                                Function.Call(Hash.TASK_GO_STRAIGHT_TO_COORD, 0, Teller_Walk_Locations2[Robs[0].List_Index].X, Teller_Walk_Locations2[Robs[0].List_Index].Y, Teller_Walk_Locations2[Robs[0].List_Index].Z, 1.0f, -1, Teller_Heading[Robs[0].List_Index] - 100.0f, -.1f);
                                Function.Call(Hash.TASK_GO_STRAIGHT_TO_COORD, 0, FleecaVaultDoor_KeyPad_Locations[Robs[0].List_Index].X, FleecaVaultDoor_KeyPad_Locations[Robs[0].List_Index].Y, FleecaVaultDoor_KeyPad_Locations[Robs[0].List_Index].Z, 1.2f, -1, Teller_Heading[Robs[0].List_Index] - 90.0f, -.1f);
    
                                GTA.Native.Function.Call(Hash.SET_SEQUENCE_TO_REPEAT, seq, false);
                                GTA.Native.Function.Call(Hash.CLOSE_SEQUENCE_TASK, seq);
                                GTA.Native.Function.Call(Hash.TASK_PERFORM_SEQUENCE, Robs[0].Teller, seq);
                                GTA.Native.Function.Call(Hash.CLEAR_SEQUENCE_TASK, &seq);
    
                                Robs[0].Teller.AlwaysKeepTask = true;
    
                            }"

  • MODERATOR



  • @Unknown-Modder Thanks man appreciate it.


Log in to reply
 

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.